validate_openapi
Validates OpenAPI 3.x or Swagger 2.0 documents and returns every error with JSON Pointer, line and column, plus lint warnings in one pass.
Instructions
Validate an OpenAPI 3.0/3.1/3.2 or Swagger 2.0 document. Returns every error (not just the first) with its JSON Pointer, line and column, plus lint warnings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | The document as YAML or JSON text (or a JSON object). | |
| spec_path | No | A local file instead of `spec`. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read. |