Skip to main content
Glama

dev_openapi

Read-only

OpenAPI analyzer + tool generator — Reads a JSON OpenAPI 3.x or Swagger 2.0 spec from a URL: title, version, servers, auth schemes, operation list (method, path, operationId, params, body), tag/method stats, and a lint report (missing operationIds, duplicate ids, undeclared path params, missing 2xx responses, unresolved $refs) with score and grade. tools=openai|anthropic|mcp also converts every operation into ready-to-use LLM tool/function definitions with $refs resolved (max_tools= up to 200). Price: $0.008 USDC (Base, via x402).

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": {
      "url": "<url>"
    },
    "name": "dev_openapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYese.g. https://petstore3.swagger.io/api/v3/openapi.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses important behavior: it fetches the spec from a URL, reports lint results with a score and grade, resolves $refs during generation, caps generation at 200 tools, and costs $0.008 USDC via x402. It does not describe error handling or rate limits, but the key operational traits are present.

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

Conciseness4/5

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

The description is dense but front-loaded, starting with the tool's identity and core operation. It packs many details into one long sentence, but each clause contributes useful information rather than filler.

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

Completeness3/5

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

The description explains the return content well enough for an analyzer without an output schema: title, version, servers, auth schemes, operations, stats, and lint report. However, it advertises a generation mode whose parameters are not present in the schema, leaving that part of the invocation incomplete for an agent.

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

Parameters2/5

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

The input schema defines only `url`, and that parameter is already fully described by the schema. The description introduces `tools=openai|anthropic|mcp` and `max_tools` as if they were callable options, but they are absent from the schema, creating confusion about how to invoke the advertised generation mode.

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

Purpose4/5

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

The description states a specific verb and resource: it reads an OpenAPI/Swagger spec and analyzes it, with an optional tool-generation mode. The feature list clearly separates it from a generic security check, but it does not explicitly name or differentiate itself from the related `security_openapi_check` sibling.

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

Usage Guidelines3/5

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

Usage is implied by the feature description: use it to inspect an OpenAPI spec or convert its operations into LLM tools. There is no explicit when-to-use guidance, when-not-to-use guidance, or named alternative tool for overlapping needs.

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