validate_spec
Validate OpenAPI specifications for quality and completeness by checking missing descriptions, orphaned schemas, naming inconsistencies, and error responses to generate a quality score.
Instructions
Validate an OpenAPI spec for quality and completeness. Checks for missing descriptions, orphaned schemas, naming inconsistencies, missing error responses, and more. Returns a quality score (0-100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Swagger/OpenAPI spec source: URL (https://...) or local file path (/path/to/spec.json, ./spec.yaml) | |
| auth_header | No | Authorization header value, e.g. "Bearer eyJ..." or "Basic dXNlcjpwYXNz" | |
| headers | No | Additional HTTP headers as key-value pairs, e.g. {"X-API-Key": "abc123"} |