Skip to main content
Glama
geniyangge

api-docs-mcp-server

by geniyangge

刷新文档缓存

refresh-cache

Force reload cached API documentation to replace stale data immediately. Optionally refresh a specific source; if refresh fails, keep the old cache.

Instructions

强制重新加载文档源并立即替换缓存(无需等待 5 分钟过期)。参数 source 可选:传了只刷新该文档源(若从未加载过则加载并加入缓存);不传则刷新全部已缓存源(注意:不等于默认文档;若默认文档从未被加载则不在刷新之列)。刷新失败时保留旧缓存。

Input Schema

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

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

With no annotations provided, the description carries the full burden. It discloses important behaviors: failure retains old cache, and refreshing all cached sources excludes the default if it was never loaded. It does not mention authentication or rate limits, but covers key side effects.

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?

The description is concise yet comprehensive, covering behavior, parameter handling, and failure cases without unnecessary fluff. It is well-structured with clear conditional logic.

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?

The description covers all essential aspects of the tool's operation: parameter semantics, edge cases, and failure behavior. It does not describe return values, but since no output schema is provided, this is not a significant gap. Overall, it is complete for the given complexity.

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?

The description adds substantial meaning beyond the schema. It clarifies that 'source' is optional and explains the exact consequences of providing or omitting it, including the nuance about the default document not being refreshed unless previously loaded. This goes beyond the basic schema description.

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's function: forcibly reloading document sources and replacing the cache immediately. It distinguishes itself from sibling tools (get-spec-overview, search-apis, etc.) by focusing on cache refresh rather than retrieval or search.

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 explains when to use the tool (to refresh cache) and details the behavior of the optional 'source' parameter, including the difference between refreshing a specific source versus all cached sources. It does not explicitly contrast with sibling tools but implies the use case clearly.

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