Skip to main content
Glama

Agent Data Tools: Company, compliance and checks

OpenAPI spec summary: operations, auth and servers

openapi_summary
Read-only

Read an OpenAPI 3 or Swagger 2 document (JSON or YAML, up to 2 MB) from a URL and summarise it for an agent: title, version, description, servers, auth schemes, operation count by method, tags, which operations are paid (402 or x-payment-info) or deprecated, and up to 150 operations with method, path, summary and operationId. Use before calling an unfamiliar API, to pick an endpoint, or to compare APIs. Example: url=https://petstore3.swagger.io/api/v3/openapi.json. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "openapi_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the OpenAPI or Swagger document

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint=false and destructiveHint=false, and the description reinforces the safety profile while adding genuinely new facts: a 2 MB input ceiling, per-call pricing via x402/card key, first 10 calls free, failed calls free, and that repeats are charged. The non-idempotent charge behaviour is the key disclosure an agent needs, though it does not discuss error states or rate limiting beyond cost.

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 paragraph is front-loaded with purpose and output contents, then usage, then example, then pricing, then safety. It is dense and mostly earns its length, though 'Reads or computes only and changes nothing' partly restates readOnlyHint and the final clause slightly repeats the cost point.

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?

For a one-parameter, no-output-schema tool, the description compensates by listing exactly what the summary returns and its 150-operation cap. An agent has everything needed to decide on the call and interpret results without further documentation.

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 there is only one parameter, so the schema already documents `url`. The description adds meaning beyond it: accepted formats (JSON or YAML), a 2 MB size cap, and a concrete example URL, which helps the agent validate inputs before calling.

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 pair (read an OpenAPI 3 or Swagger 2 document from a URL and summarise it) and then enumerates the summary's contents: title, version, servers, auth schemes, operation counts by method, tags, paid/deprecated flags, and up to 150 operations. Nothing about the tool's function is left ambiguous.

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

Usage Guidelines5/5

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

Names three concrete situations to use it: before calling an unfamiliar API, to pick an endpoint, or to compare APIs. It also supplies a working example value for the required parameter, so an agent knows both when and how to invoke it.

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