Skip to main content
Glama

OpenAPI Spec Check

openapi_lint
Read-onlyIdempotent

Check an OpenAPI document (JSON or YAML text, Swagger 2.0 or OpenAPI 3.0 and 3.1) and get back a pass or a fix list an agent can act on: does it parse, which version, broken local $ref pointers, missing operationId or duplicate ones, operations without responses or without a response schema, path parameters that do not match the path, security requirements that name no scheme. Send the document itself as text: this tool never fetches a URL. Each finding says where, what is wrong and the fix. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/openapi-lint). Not legal, tax or financial advice.

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": {
      "document": "<document>"
    },
    "name": "openapi_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesThe whole OpenAPI document as JSON or YAML text (up to 24,000 characters). A web address is refused: paste the document. Send specs without real personal data in examples; examples are not echoed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, closed-world and non-destructive, and the description adds genuinely new context: free, no model, no network, nothing stored, hourly rate limit, and signed answers with a verification URL. It also says findings include location, problem and fix, and that examples are not echoed, though it never explains what the listed answer fields (does_not, signature, verify) actually contain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the never-fetches-a-URL constraint are front-loaded, but the body is a single run-on paragraph of semicolon-separated defect types and bare field names. The closing 'Not legal, tax or financial advice' boilerplate does not earn its place on a spec linter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and does so by naming the answer fields and stating that findings include location, problem and fix, plus explicit error semantics. Combined with the size limit and privacy note, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is already documented, but the description still adds meaning the schema lacks: a web address is refused, the document must be pasted as text, and example payloads should omit real personal data. That is useful operational guidance beyond the maxLength note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Check an OpenAPI document') plus the accepted formats and versions (JSON/YAML, Swagger 2.0, OpenAPI 3.0/3.1), then enumerates the concrete defect classes it detects. This makes it unmistakable next to the many other *_check siblings such as mcp_server_json_check or agent_card_check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear invocation context: paste the document as text, never a URL, and notes the error modes (bad input, too large, hourly limit). It does not name or exclude any sibling, so the agent gets no explicit routing rule, only a clear picture of when this tool fits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources