lint_spec
Lint an OpenAPI or Swagger spec from a path or raw text to surface rule violations with severity, location, and concrete fixes.
Instructions
Lint a spec. Findings have a rule id (OAS1001+), severity (error/warning/info), a JSON pointer, the source line when known, and a concrete fix. Rules cover operationIds, missing or non-2xx responses, path parameters vs the URL template, parameter naming, unused components, untyped schemas, required-not-in-properties, enum/default/example mismatches (checked with a built-in JSON Schema validator), missing descriptions, undefined security schemes, http:// production servers, POST-200 on creation, trailing slashes, duplicate paths and deprecations without a replacement note.
spec is a path inside the allowed directory, or the spec text itself.
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": "lint_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |