Skip to main content
Glama

get_context

Retrieves relevant passages from your local Cerebra library for a question, within a token budget, so you can ground answers and cite sources.

Instructions

The best passages for a question, within a token budget.

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": {
      "question": "<question>"
    },
    "name": "get_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
budgetNo
questionYes
collectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies retrieval and truncation via the token budget but does not explain ranking behavior, what happens when the budget is exceeded, whether results are read-only, or how errors are surfaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a single fragment with no wasted words, but it is under-specified rather than appropriately concise. It lacks the structural elements needed for an agent to understand scope, alternatives, and parameter roles.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with three parameters, no annotations, and no output schema, the description is too thin. It leaves collection scoping, budget semantics, and return shape implicit, making it incomplete relative to the tool's moderate complexity.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for all three parameters. It clarifies that 'question' is the query and that 'budget' is a token limit, but it says nothing about the 'collection' parameter or the maximum value behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'The best passages for a question, within a token budget' conveys that this retrieves ranked text passages scoped by a question and a budget. However, it is a sentence fragment rather than a clear verb+resource statement, and it does not explicitly distinguish itself from siblings such as search, related, or read_note.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use get_context instead of search, related, overview, or read_note. The description supplies no context about prerequisites, exclusions, or tradeoffs, leaving the agent to infer the appropriate tool.

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