Skip to main content
Glama
Strands Agents MCP Server

Strands Agents MCP Server

Official

Read a Strands docs page

fetch_doc
Read-onlyIdempotent

Read Strands Agents documentation one section at a time to limit token use: get a page’s table of contents, then retrieve the specific section needed.

Instructions

Read a Strands docs page, one section at a time for token efficiency.

Without section, returns the page's table of contents (sections with id, level, title, summary, children) and its preamble. With section, returns that section's full markdown as content. Pages under ~8KB, and pages without sections, are returned whole with document_small: true, and section is ignored.

Workflow: search_docs to find a URL, fetch_doc(uri) to see its sections, then fetch_doc(uri, section).

Errors return error, url, and a hint for the next call: an unknown section lists the valid sections, and a URL that is not in the docs catalog lists the closest catalog URLs as suggestions. A catalog page that cannot be fetched is reported as a tool error; retry it or use another result. Fetched pages are cached for the life of the server process.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriNoPage URL under https://strandsagents.com/, usually taken from a search_docs result. Leave empty to list every page URL with its title.
sectionNoSection ID from the page's table of contents, e.g. "3" or "3.2". Omit to get the table of contents.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.1
    • addedInput schema / properties / section / description
      Added value: +"Section ID from the page's table of contents, e.g. \"3\" or \"3.2\". Omit to get the table of contents."
    • addedInput schema / properties / uri / description
      Added value: +"Page URL under https://strandsagents.com/, usually taken from a search_docs result. Leave empty to list every page URL with its title."
  2. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: it discloses the small-page shortcut (document_small: true, section ignored), the caching lifetime ('for the life of the server process'), and the exact error payload shape with self-correcting hints (valid section list, closest catalog URLs).

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?

Well front-loaded: the read purpose comes first, then the two modes, then the workflow, then errors. It is slightly dense across several clauses (small-page behavior, caching, error shapes), but nearly every sentence carries information an agent needs to call it correctly.

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?

With an output schema present, return shape need not be explained, and the description still covers the mode split, the degenerate small-page case, error recovery, and caching. For a two-parameter read tool this leaves nothing material an agent must guess.

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 coverage is 100% and already documents both parameters, so the baseline is 3; the description adds real meaning by specifying the branch logic — omit section to get the TOC plus preamble, include it to get full markdown — and clarifies that section is silently ignored for small or sectionless pages, which the schema does not say.

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?

Opens with a specific verb+resource ('Read a Strands docs page') and immediately qualifies the unit of retrieval ('one section at a time for token efficiency'), which makes clear it is a content retriever rather than a discovery tool like search_docs.

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 an explicit three-step workflow ('search_docs to find a URL, fetch_doc(uri) to see its sections, then fetch_doc(uri, section)'), naming the sibling alternative and the condition that selects each mode. It also tells the agent what to do on failure paths (retry a failed catalog page or use another result).

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

Deploy Server

Other Tools