Validate an OpenAPI spec
validate_openapiCheck an OpenAPI 3.0/3.1 or Swagger 2.0 document (JSON or YAML) for the mistakes that break tools: missing required fields, undeclared path parameters, invalid status codes, duplicate operationIds, broken $refs, undefined security schemes and examples that don't match their schema. Returns each problem with a JSON pointer and, for JSON, a line number.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec": "<spec>"
},
"name": "validate_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The whole OpenAPI or Swagger document, as JSON or YAML text. |