Skip to main content
Glama

atlas_search

Read-onlyIdempotent

Search documentation sections using BM25 full-text matching and return ranked snippets with anchors so you can locate and inspect relevant content.

Instructions

Run a BM25 full-text search across documentation sections and return ranked snippets with anchors.

Use this tool for broad or multi-section topics ('where all is armor mentioned?') or when
`atlas_where` returns no single match. Pass a returned `anchor` to `atlas_read` to inspect the full section.

Behavior & Output:
- Read-only lexical search via SQLite FTS5 (no embeddings; project synonyms come from `.atlas/aliases.yml`).
- Returns a JSON string `{query, count, hits: [{anchor, doc_id, heading, breadcrumb, path, line, snippet, score}]}`.
  Returns `count: 0`, an empty `hits` list, and `hint` if nothing matches.

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": "atlas_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNoMaximum number of ranked section hits to return (1-50, default 5).
docNoOptional document ID (e.g. 'combat' or '02-combat') to restrict the search to a single document. Omit or pass null to search all documents.
queryYesKeywords or phrase to search across all indexed documentation sections (e.g. 'cover reduction', 'turn order'). Uses lexical FTS5 matching with umlaut folding ('Hoehe' matches 'Höhe') and German compound splitting.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / doc / description
      Added value: +"Optional document ID (e.g. 'combat' or '02-combat') to restrict the search to a single document. Omit or pass null to search all documents."
    • addedInput schema / properties / k / description
      Added value: +"Maximum number of ranked section hits to return (1-50, default 5)."
    • addedInput schema / properties / k / maximum
      Added value: +50
    • addedInput schema / properties / k / minimum
      Added value: +1
    • addedInput schema / properties / query / description
      Added value: +"Keywords or phrase to search across all indexed documentation sections (e.g. 'cover reduction', 'turn order'). Uses lexical FTS5 matching with umlaut folding ('Hoehe' matches 'Höhe') and German compound splitting."
    • addedInput schema / properties / query / minLength
      Added value: +1
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world behavior, so the safety profile is covered. The description adds real context beyond that: the retrieval mechanism (SQLite FTS5, no embeddings), where synonyms come from (`.atlas/aliases.yml`), and the empty-result behavior with a `hint`. It loses a point only because the return-shape breakdown partly duplicates the existing output 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 the core action, then a clearly labeled "Behavior & Output" block; no filler sentences. Minor redundancy in restating the JSON return shape that the output schema already defines.

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 3-parameter read-only search tool this covers everything an agent needs: what it does, when to prefer it over the sibling, what the results contain, how to chain into `atlas_read`, and what happens on zero hits. No gaps remain that would cause a misinvocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with `k`, `doc`, and `query` each carrying their own bounds, defaults, and examples. The description adds no parameter-level meaning beyond the schema (e.g. it never explains when to narrow by `doc` or how `k` interacts with snippet length), so the baseline 3 applies.

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 ("Run a BM25 full-text search across documentation sections") plus the return type ("ranked snippets with anchors"). It explicitly differentiates itself from the sibling `atlas_where` by naming the condition that selects it, so an agent can route 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 guidance ("broad or multi-section topics", example query) and a named fallback trigger ("when `atlas_where` returns no single match"). It also closes the loop on next steps by directing the agent to pass a returned `anchor` to `atlas_read`.

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