Skip to main content
Glama
Strands Agents MCP Server

Strands Agents MCP Server

Official

Search Strands docs

search_docs
Read-onlyIdempotent

Search the official Strands Agents documentation, including user guides, API reference pages, and examples, to find relevant pages for a concept, feature, or API by keyword.

Instructions

Search the official Strands Agents docs: user guides, API reference pages, and examples.

Ranking uses page titles, URL paths, and catalog descriptions, plus a page's content once it has been fetched, so both title-like keywords and body terms work. The top results are fetched on demand to build snippets. Call fetch_doc with a result URL to read the page or one of its sections. If you already have a strandsagents.com URL, call fetch_doc directly instead of searching. When the question is phrased conversationally, pass alternate_queries with the terms the docs likely use instead of searching again.

Each result has url, title, snippet, and score. The score is an unbounded BM25 value, or a fused rank score when alternate_queries are given: higher is better within one result set; it is not a probability and is not comparable across queries. Returns an empty list when nothing matches. If a result page cannot be fetched, its title is used as the snippet.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNoMaximum number of results to return.
queryYesKeywords for a Strands concept, feature, or API, e.g. "bedrock model", "MCP tools", "structured output", "guardrail". Prefer short keyword phrases over full conversational sentences.
alternate_queriesNoOptional other phrasings of the same question in the words the docs likely use: feature names, API names, synonyms. For "stop the agent after 5 turns", pass ["turn limit", "max cycles", "lifecycle controls"]. Pages matched by several phrasings rank first.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.3.1
    • addedInput schema / properties / alternate_queries
      Added value: +{
      +  "default": [],
      +  "description": "Optional other phrasings of the same question in the words the docs likely use: feature names, API names, synonyms. For \"stop the agent after 5 turns\", pass [\"turn limit\", \"max cycles\", \"lifecycle controls\"]. Pages matched by several phrasings rank first.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 4,
      +  "title": "Alternate Queries",
      +  "type": "array"
      +}
    • addedInput schema / properties / k / description
      Added value: +"Maximum number of results to return."
    • addedInput schema / properties / k / maximum
      Added value: +20
    • addedInput schema / properties / k / minimum
      Added value: +1
    • addedInput schema / properties / query / description
      Added value: +"Keywords for a Strands concept, feature, or API, e.g. \"bedrock model\", \"MCP tools\", \"structured output\", \"guardrail\". Prefer short keyword phrases over full conversational sentences."
  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, openWorld, and non-destructive, and the description adds substantial context beyond them: on-demand fetching of top results to build snippets, a fallback to page title when a fetch fails, empty-list behavior on no match, and the meaning of the score field. The BM25/fused-rank caveat ('not a probability and not comparable across queries') is exactly the kind of interpretation hint annotations cannot supply.

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?

Front-loaded with purpose and routing before mechanics, and each paragraph covers a distinct concern (ranking, follow-up, scoring, failure modes). Slightly redundant is the 'Each result has url, title, snippet, and score' enumeration, which restates fields already present in the output schema.

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?

For a search tool with a sibling, three parameters, and an output schema, the description covers everything an agent needs: what corpus, how ranking works, how to interpret scores, what an empty result means, and what to do after getting results. No behavioral ambiguity remains that would cause a mis-call.

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% so the baseline is 3, but the description genuinely adds meaning: it explains that alternate_queries changes the scoring to a fused rank score and that 'pages matched by several phrasings rank first', and it frames query as keywords rather than conversational sentences. It does not elaborate on k beyond 'top results', which is already documented in the 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?

Names a specific verb and resource ('Search the official Strands Agents docs') and scopes the corpus to user guides, API reference pages, and examples. It explicitly contrasts itself with the fetch_doc sibling ('if you already have a strandsagents.com URL, call fetch_doc directly'), so an agent can select between them without opening either schema.

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?

Gives explicit when-to-use (concept/feature/API lookup), when-not-to-use (already have a URL → fetch_doc), and a follow-up path (call fetch_doc with a result URL to read a page or section). It also directs conversational questions to alternate_queries 'instead of searching again', which is a concrete alternative strategy rather than implied usage.

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