Skip to main content
Glama

brief

Read-only

Get the best-matching section of each relevant doc packed within a token budget in one call, replacing search-read-link chains when starting on a topic.

Instructions

Start here on a topic: the best-matching section of each relevant doc, packed within a token budget, in one call instead of search_docs → read_doc → get_links. Each source carries the trust signals of search_docs; related lists the docs linked around the top ones, omitted the matches that did not fit. Use search_docs instead to list documents, grep_docs for an exact phrase or figure. read_doc a source for more of it.

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": {
      "topic": "<topic>"
    },
    "name": "brief"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesWhat you need context on, in the words the docs would use: matching is lexical, so prefer their terms and their language over a paraphrase.
budget_tokensNoRough size of the source text returned, in tokens. Raise it for a broad topic: `omitted` shows what a bigger budget would add.

Output Schema

NameRequiredDescriptionDefault
topicYes
omittedYes
relatedYes
sourcesYes
budget_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.8.0
    • changedInput schema / properties / budget_tokens / description
      Previous value: -"Rough size of the source text returned, in tokens."New value: +"Rough size of the source text returned, in tokens. Raise it for a broad topic: `omitted` shows what a bigger budget would add."
    • changedInput schema / properties / topic / description
      Previous value: -"What you need context on, in the words the docs would use."New value: +"What you need context on, in the words the docs would use: matching is lexical, so prefer their terms and their language over a paraphrase."
  2. First observedv2.7.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes further by disclosing the packing/truncation behavior — content is capped by budget_tokens, unmatched-or-unfitted matches surface in `omitted`, and linked context in `related`. The return-field names are partly redundant with the existing output schema, which keeps it just short of a 5.

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?

Four tight sentences, front-loaded with the 'start here' recommendation and the one-call payoff before the sibling routing and return-field notes. No filler or restatement of the name.

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 two-parameter read-only retrieval tool with an output schema and clear annotations, nothing an agent needs to call it correctly is missing: purpose, budget mechanics, alternatives, and expansion path are all present.

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 is 3; the description still adds meaning by tying budget_tokens to observable behavior ('omitted shows what a bigger budget would add') and reinforcing that topic matching is lexical and should use the docs' own vocabulary. That is genuine guidance beyond the field descriptions.

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 concrete verb and resource — returns the best-matching section of each relevant doc packed within a token budget — and explicitly frames itself as a one-call replacement for the search_docs → read_doc → get_links chain, so an agent can place it precisely among siblings.

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 an explicit entry point ('Start here on a topic') plus named alternatives and the conditions that select them: search_docs to list documents, grep_docs for an exact phrase or figure, read_doc to expand a source. Both when-to-use and when-not-to-use are covered.

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