Skip to main content
Glama

Search Docs

search_docs
Read-only

Search Ansible documentation by keyword to find conceptual guides and matching entries, filtering by source, topic, audience, or core status.

Instructions

Search documentation manifests for conceptual guides.

Returns up to 20 matching entries with title, summary, topic, audience, lines, source, and raw URL. On failure returns {"error": str}.

Multi-word queries first match entries containing every word (AND); if nothing matches exactly, a relaxed pass returns ranked partial matches (ranked by how many words hit the title, summary, and topics) instead of returning empty (#291).

Choose source by corpus:

  • ansible-core (or omit): official HOWTO — playbooks, vault, inventory syntax

  • ansible-lint: rules and profiles

  • ansible-navigator / ansible-builder / ansible-creator / molecule: matching source

  • aap-2.5 / aap-2.6 / aap-2.7: AAP product manuals

  • cop-good-practices: CoP opinionated practices (role design, naming, CaC, Git, testing process). Users often say "best practices"; do not invent cop-best-practices. Unfiltered search fills the 20-hit window with official + AAP first; CoP may be absent — retry with source='cop-good-practices' for CoP-shaped questions.

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
queryYesSearch term to match against documentation titles, summaries, and topics
topicNoFilter by topic tag
sourceNoFilter to a single source (e.g. 'cop-good-practices', 'ansible-core', 'aap-2.6'). Good-practices / 'best practices' / GPA questions use source='cop-good-practices'.
audienceNoFilter by audience tag
core_onlyNoIf true, only return entries marked as core

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.0
    • changedInput schema / properties / source / description
      Previous value: -"Filter to a single source (e.g. 'ansible-core')"New value: +"Filter to a single source (e.g. 'cop-good-practices', 'ansible-core', 'aap-2.6'). Good-practices / 'best practices' / GPA questions use source='cop-good-practices'."
  2. First observedv0.7.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the result cap (20), the returned fields, the error shape ({"error": str}), and the two-pass AND-then-relaxed matching with ranking by title/summary/topics. That two-pass fallback behavior is exactly the kind of non-obvious trait an agent cannot infer from annotations or schema.

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, return shape, and matching behavior before the source routing list, and the bulleted corpus list is scannable. It runs long and the parenthetical ranking explanation plus the trailing unfiltered-window note overlap slightly, but no sentence is purely filler.

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 5-parameter read-only search with an output schema and full schema coverage, the description supplies everything extra an agent needs: corpus selection, the relaxed-match fallback, the result cap, and the failure shape. Nothing required to call it correctly is missing.

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 baseline would be 3, but the description adds real meaning beyond it: it enumerates all valid source values and what each corpus contains (playbooks/vault/inventory for ansible-core, rules/profiles for ansible-lint, product manuals for aap-2.x, opinionated practices for cop-good-practices) and explains how omitting source affects results. Topic and audience filters are left to the schema alone.

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?

States a specific verb and resource ('Search documentation manifests for conceptual guides') and scopes it to conceptual/prose docs, which implicitly separates it from the sibling search_modules, search_plugins, and search_collections corpora. An agent can tell what this tool covers without opening the 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 corpus-to-source routing rules for every listed source, plus the crucial non-obvious guidance that unfiltered searches fill the 20-hit window with official + AAP results and CoP may be absent, so CoP-shaped questions should be retried with source='cop-good-practices'. It also warns against inventing a 'cop-best-practices' source. This is when-to-use guidance with concrete alternatives.

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