Skip to main content
Glama

检查 Swagger 文档地址

inspect_api_docs
Read-onlyIdempotent

Inspects API documentation URLs (doc.html, Swagger JSON) to validate endpoints, groups, and operations, returning candidates for further detail retrieval.

Instructions

在用户已明确要求查询、调试、搜索、列出或分析接口文档后,检查 doc.html、Knife4j hash 深链接或 Swagger JSON 地址。不要因为消息中只有 URL 就调用;孤立 URL 应先询问用户意图。调用后实时验证 hash 中的分组、分类和 operationId,返回候选项与 nextAction。nextAction 为 get_api_detail 时,应直接使用已验证的 group/path/method 调用 get_api_by_path。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo页码,从 1 开始
docsUrlYes本次要查询的 doc.html 或 Swagger JSON 完整地址
pageSizeNo每页数量,最大 100
Behavior4/5

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

Annotations already declare readOnlyHint=true, so description adds operational flow: returns candidates and nextAction, and specifies next steps. No contradiction. Adds useful context beyond annotations.

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?

Single paragraph, front-loaded with condition for calling. Clear and efficient, though could be slightly more concise.

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?

No output schema, but description mentions return of candidates and nextAction, and covers when to call and next steps. Adequately complete for a read-only inspection tool.

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 100% (baseline 3). Description adds slight context by noting docsUrl should be complete address (doc.html or Swagger JSON), but no new semantics beyond 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?

Explicitly states it inspects Swagger doc URLs after user explicitly requests query/debug/search/list/analyze. Clearly distinguishes from siblings by focusing on doc inspection.

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?

Provides explicit condition for calling (only after user expresses intent to query/debug/search/list/analyze) and warns against calling on isolated URLs. Gives clear context and exclusions.

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/qipeijun/swagger-docs-mcp'

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