Skip to main content
Glama
geniyangge

api-docs-mcp-server

by geniyangge

获取接口文档概览

get-spec-overview

Fetch a high-level overview from a Swagger/OpenAPI document: info, servers, tag-grouped endpoint stats, and total API count. Use this as the first step before exploring or calling endpoints.

Instructions

读取 Swagger/OpenAPI 文档,返回 info、servers、tags 分组统计、接口总数等概览信息。通常这是使用其它工具前的第一步。参数 source:文档的 URL(http/https)或本地文件路径(.json/.yaml/.yml),可选,不传时使用服务端配置的默认文档。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoSwagger/OpenAPI 文档的 URL(http/https)或本地文件路径(.json/.yaml/.yml);不传时使用服务端配置的默认文档
Behavior3/5

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

With no annotations, the description carries the burden. It states it reads the document (implying read-only) but does not disclose potential side effects like network access, caching, or error behavior. However, it does mention the default-document fallback, adding some transparency beyond the schema.

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

Conciseness5/5

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

Two concise sentences, front-loaded with the action and output, then parameter details. No wasted words; it efficiently conveys purpose, usage context, and parameter behavior.

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 simple tool with one optional parameter and no output schema, the description is fairly complete. It specifies what the overview includes and the fallback behavior. It could mention error handling or that it does not return the full spec, but that is not essential given the sibling context.

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 description coverage is 100% and the description essentially repeats the schema's parameter info without adding new meaning. The baseline for high coverage is 3, and since the description adds no extra semantics beyond the schema, a 3 is appropriate.

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?

The description clearly states the tool reads Swagger/OpenAPI documents and returns overview information (info, servers, tags stats, total endpoints). It explicitly frames it as the first step before using other tools, distinguishing it from siblings like get-api-detail or get-openapi-spec.

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?

The description provides clear usage context ('usually this is the first step before using other tools') and explains the optional source parameter falls back to a default document. It does not explicitly name alternates or when not to use it, but the context strongly implies its role.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/geniyangge/api-docs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server