{
  "openapi": "3.0.0",
  "info": {
    "title": "Robot directory HTTP API for geppettorobotdirectory.com",
    "version": "1.2.0",
    "description": "Query robots, robot training datasets, hardware component suppliers, and the Robot Jobs Index. Public, no authentication required."
  },
  "servers": [
    {
      "url": "https://geppettorobotdirectory.com"
    }
  ],
  "paths": {
    "/functions/robotsApi": {
      "post": {
        "summary": "Query the robot directory at geppettorobotdirectory.com (single dispatch endpoint)",
        "operationId": "robotsApi",
        "description": "Single dispatch endpoint. POST a body of { \"tool\": <name>, \"params\": {...} }. Tools: search_robots (search 800+ robots by category, brand, price, or use case), get_robot (one robot by slug), compare_robots (two robots side by side), get_category (all robots in a category), get_job_automation_risk (Robot Impact Score 0-100 for a profession), search_datasets (search 1,000+ robot training datasets), get_dataset (one dataset by slug), get_component_category (a hardware component category with its full supplier list), search_suppliers (search hardware component suppliers), get_supplier (one supplier by slug). Descriptions and input fields match /.well-known/mcp/manifest.json.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "tool",
                  "params"
                ],
                "properties": {
                  "tool": {
                    "type": "string",
                    "enum": [
                      "search_robots",
                      "get_robot",
                      "compare_robots",
                      "get_category",
                      "get_job_automation_risk",
                      "search_datasets",
                      "get_dataset",
                      "get_component_category",
                      "search_suppliers",
                      "get_supplier"
                    ]
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tool result as JSON"
          },
          "400": {
            "description": "Unknown tool or missing param"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "InteroperabilityStandard": {
        "type": "string",
        "enum": [
          "MassRobotics Interoperability Standard",
          "VDA 5050",
          "ISO 21423"
        ]
      },
      "RobotInteroperability": {
        "type": "object",
        "description": "Read-only fields included in robot records returned by search_robots, get_robot and related actions. Populated only when a public vendor page or datasheet states support; otherwise an empty array and null.",
        "properties": {
          "interoperabilityStandards": {
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/InteroperabilityStandard"
            },
            "default": []
          },
          "interoperabilitySourceUrl": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "readOnly": true,
            "description": "Vendor page or datasheet that states support. Present whenever interoperabilityStandards is not empty."
          }
        }
      }
    }
  }
}
