Skip to main content
Glama

doc_extract

Retrieve versioned documentation snippets by entry ID and focused concept, receiving ranked relevant sections with release notes and source annotations.

Instructions

提取文档:按条目 id、版本与聚焦点(focus)取回相关文档片段,片段按相关度评分降序。focus 建议一次只描述一个概念(如 "路由参数"),跨概念问题分多次调用。version 缺省取最新稳定版;支持精确版本号与前缀(如 "4")。返回中包含 releaseNote 说明版本选择依据、source 标注数据来源。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes条目规范 id(catalog_lookup 返回,必填)
focusNo聚焦概念,用于对片段做相关度排序(可选)
versionNo目标版本:latest / 精确版本号 / 前缀(默认 latest)
maxSectionsNo最多返回几个片段,默认 6
Behavior4/5

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

With no annotations, the description carries full burden. It discloses relevance sorting, version selection logic (latest stable, exact/prefix), and that output includes releaseNote and source fields, providing meaningful behavioral context 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?

The description is three concise sentences covering purpose, focus usage, and version/return behavior. No redundancy, front-loaded with the main action, and every sentence adds useful information.

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 tool with 4 params, no output schema, and no annotations, the description explains core behavior, parameter nuances, and output fields (releaseNote, source). It is reasonably complete, though it could briefly note its relation to sibling catalog_lookup, but the schema already links id to catalog_lookup.

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 descriptions cover 100% of parameters, so baseline is 3. The description adds value by explaining focus should be a single concept and version supports prefixes, enhancing what the schema labels only as 'focusing concept' and 'target version'.

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 it extracts document segments by entry id, version, and focus, returning them sorted by relevance score. This specific verb and resource distinguish it from siblings catalog_lookup and catalog_releases, which focus on catalog metadata and releases.

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?

It gives practical guidance: focus should describe a single concept, with multiple calls for cross-concept questions, and explains version defaults and prefix support. While it doesn't explicitly name alternatives, the instructions are clear and actionable.

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/JohnXu22786/docs-retriever'

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