{
  "openapi": "3.0.1",
  "info": {
    "title": "MCP Tool Schema Auditor — AgentReady",
    "description": "Get a 0–100 MCP tool-schema score in seconds. Leave input empty to see a built-in sample, or audit a public HTTPS endpoint, an Apify Connector, or pasted tools/list JSON—without executing upstream tools.",
    "version": "0.1",
    "x-build-id": "W7y1kbpTlhVMfpiEz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/matdavis~agentready-mcp-tool-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-matdavis-agentready-mcp-tool-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/matdavis~agentready-mcp-tool-auditor/runs": {
      "post": {
        "operationId": "runs-sync-matdavis-agentready-mcp-tool-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/matdavis~agentready-mcp-tool-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-matdavis-agentready-mcp-tool-auditor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mcpConnector": {
            "title": "Authorized MCP connector",
            "type": "string",
            "description": "Safest option for authenticated servers. Credentials stay in Apify and are injected by its MCP proxy."
          },
          "mcpServerUrl": {
            "title": "Public MCP server URL",
            "pattern": "^https://.+",
            "type": "string",
            "description": "A public Streamable HTTP MCP endpoint. HTTPS is required; localhost and private IP ranges are blocked."
          },
          "headers": {
            "title": "HTTP headers",
            "maxItems": 20,
            "type": "array",
            "description": "Optional headers for the public endpoint, for example Authorization. Stored as secret input.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Header name",
                  "description": "HTTP header name.",
                  "type": "string",
                  "minLength": 1
                },
                "value": {
                  "title": "Header value",
                  "description": "HTTP header value.",
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "name",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "tools": {
            "title": "Inline MCP tool definitions",
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "description": "Paste the tools array from tools/list when the server cannot be reached remotely.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Tool name",
                  "description": "Stable MCP tool name.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                },
                "title": {
                  "title": "Display title",
                  "description": "Optional human-friendly title.",
                  "type": "string"
                },
                "description": {
                  "title": "Description",
                  "description": "Instructions that help an agent select the tool.",
                  "type": "string"
                },
                "inputSchema": {
                  "title": "Input JSON Schema",
                  "description": "JSON Schema for tool arguments.",
                  "type": "object",
                  "editor": "json"
                },
                "outputSchema": {
                  "title": "Output JSON Schema",
                  "description": "Optional JSON Schema for structured output.",
                  "type": "object",
                  "editor": "json"
                },
                "annotations": {
                  "title": "MCP annotations",
                  "description": "Optional readOnlyHint, destructiveHint, idempotentHint, and openWorldHint values.",
                  "type": "object",
                  "editor": "json"
                }
              },
              "required": [
                "name",
                "inputSchema"
              ],
              "additionalProperties": true
            }
          },
          "charsPerToken": {
            "title": "Characters per estimated token",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Portable token estimate ratio. Use a model-specific tokenizer in a future deep-audit version.",
            "default": 4
          },
          "includeMarkdown": {
            "title": "Generate Markdown report",
            "type": "boolean",
            "description": "Store a human-readable REPORT.md in addition to structured JSON.",
            "default": true
          },
          "failOnSeverity": {
            "title": "CI failure threshold",
            "enum": [
              "none",
              "critical",
              "high",
              "medium",
              "low"
            ],
            "type": "string",
            "description": "Optionally fail the Actor run when a finding at or above this severity is detected.",
            "default": "none"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}