Skip to main content
Glama

spec_overview

Summarize an OpenAPI or Swagger spec to review its version, title, servers, tags, paths, operations by method, auth schemes, schemas, deprecated items, and unresolved $refs.

Instructions

Summarise an API description: format/version read, title, servers, number of tags, paths and operations (by method), auth schemes, schema count, deprecated count and any unresolved $refs (remote refs are reported, never fetched).

spec is a path inside the allowed directory (.yaml/.yml/.json; OpenAPI 3.0.x, 3.1.x or Swagger 2.0), 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": "spec_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses that remote $refs are reported but never fetched, which tells the agent there is no outbound network resolution and the summary may contain unresolved refs. It also bounds the input to a path inside the allowed directory and to specific spec versions. It doesn't state read-only-ness explicitly or describe behavior on malformed/unsupported specs, which keeps it below 5.

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 compact paragraphs, front-loaded with the output inventory and followed by the input contract; no filler sentences. The dense colon-separated list is efficient, though slightly read as a spec dump rather than prose.

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?

An output schema exists, so return shape need not be documented, yet the description still names the reported facts, which helps tool selection. Input constraints and the no-remote-fetch behavior are covered; the only gaps are error behavior for invalid or oversized specs and an explicit read-only statement.

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

Parameters5/5

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

Schema coverage is 0% and the schema is a bare string with no description, so the description must compensate entirely — and it does, spelling out that `spec` is a path inside the allowed directory with .yaml/.yml/.json extensions, accepted OpenAPI 3.0.x/3.1.x or Swagger 2.0 documents, or the spec text itself. That fully defines the acceptable value space beyond the schema.

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?

"Summarise an API description" is a specific verb+resource, and the enumeration (format/version, title, servers, tag/path/operation counts, auth schemes, schema count, deprecated count, unresolved $refs) makes the scope concrete enough to separate it from lint_spec (rules) and describe_operation (single operation). An agent knows exactly what class of question this tool answers.

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 rather than stated: the word "summarise" and the inventory of counts suggest a first-pass/orientation call before deeper tools like lint_spec or describe_operation, but no alternative is named and no when-not condition is given. The agent must infer the routing from sibling names alone.

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