Skip to main content
Glama

OpenAPI to tools

openapi_to_tools
Read-onlyIdempotent

Turn an OpenAPI 3.x or Swagger 2.0 spec (JSON object) into LLM tool definitions in the chosen format, one tool per operation. Free: 5 calls/hour per IP with arguments up to 8 KB; then $0.02 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
specYesOpenAPI 3.x or Swagger 2.0 document as JSON.
targetNoOutput format. Default openai.
includeNoOptional operationIds or 'METHOD /path' strings to include.
maxToolsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive/openWorld=false, and the description adds genuinely useful context the annotations cannot: rate limits (5 calls/hour per IP), an 8 KB argument cap, and paid fallback ($0.02 USDC via x402). It does not cover failure behavior or output shape, but the limits disclosure is strong.

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?

Two front-loaded sentences with no filler: capability first, then cost/limits. Slightly dense in the second sentence but every clause carries information.

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

Completeness4/5

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

For a read-only, side-effect-free conversion tool with no output schema, the description conveys the output ('LLM tool definitions in the chosen format, one tool per operation') and the cost model, which is what an agent needs before calling. Minor gap: nothing about how large specs or maxTools truncation behave.

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

Parameters3/5

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

Schema coverage is 75%, so most parameters are documented in-schema; baseline 3 applies. The description adds little beyond 'in the chosen format' for target, and leaves maxTools (undocumented in schema) and include unaddressed.

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?

States a specific verb and resource ('Turn an OpenAPI 3.x or Swagger 2.0 spec ... into LLM tool definitions') and even the granularity ('one tool per operation'). It does not distinguish itself from siblings like convert_tool_schema or batch_convert_tool_schemas, which appear to overlap, so an agent gets purpose but not sibling routing from the text.

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 input type (an OpenAPI document), and the pricing line hints that the free tier is for small/short calls. But there is no explicit guidance on when to prefer this over convert_tool_schema or batch_convert_tool_schemas, and no exclusions or prerequisites are stated.

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