Skip to main content
Glama

read_doc

Read-onlyIdempotent

Retrieve SDK docs by exact path, or list all available paths when no path is provided. Get method signatures and JSDoc examples directly from the source of truth.

Instructions

Fetch a specific SDK docs chunk by exact path, or list all available paths when called with no args.

Use this instead of search_docs when you already know the chunk ID — it's cheaper and more deterministic. Common patterns: • read_doc({}) → list every chunk ID with one-line summaries (use this once at the start of a session to map the SDK surface) • read_doc({ path: "klaviyo.reporting.campaignValues" }) → fetch one method's full doc (signature + JSDoc + example) verbatim • read_doc({ platform: "shopify" }) → list only Shopify chunk IDs

This adopts the "filesystem-as-API" pattern from Anthropic's Code Execution with MCP research: LLMs are faster and more accurate when they can read a typed-source-of-truth doc page directly, rather than re-searching for it on every code generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoExact chunk ID to fetch (e.g. 'klaviyo.reporting.campaignValues', 'guide.output-discipline'). Omit to list all available paths.
platformNoWhen listing (no `path`), filter to one platform's docs only.
Install Server

TDQS

A5/5.0
Behavior5/5

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

Annotations already mark this read-only, idempotent, and non-destructive, but the description adds meaningful behavioral detail: no-args lists one-line summaries, path fetch returns verbatim full doc, and platform only filters listings. It also explains determinism and the filesystem-as-API rationale, giving the agent useful mental model 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.

Conciseness5/5

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

The core behavior and routing rule are front-loaded, followed by scannable bullet examples, and then a short rationale. Every sentence earns its place; the research reference is brief and helps explain why direct doc reading is preferable to repeated searching.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even without an output schema, the description covers all return modes: listing all chunks with summaries, listing by platform, and fetching one full doc verbatim. Required parameters, optional parameters, and parameter combinations are all addressed. No critical gap remains for an agent to choose and call this tool correctly.

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 100%, so the baseline is 3, but the description adds substantial value: concrete path examples, 'omit to list all available paths', platform filter scoped to listing mode, and expected return shape per parameter combination. These details are not in the schema and materially improve correct invocation.

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 a specific verb and resource: 'Fetch a specific SDK docs chunk by exact path' and also describes the no-args listing mode. It explicitly distinguishes this tool from search_docs, so an agent can select it correctly based on the tool's purpose alone.

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?

The description gives explicit routing guidance: 'Use this instead of search_docs when you already know the chunk ID.' It also provides common usage patterns and a recommendation to call read_doc({}) once at session start to map the SDK surface. This goes beyond vague context into actionable when-to-use instructions.

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

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/rafaelsztutman/dtc-mcp'

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