Skip to main content
Glama

search_context

Semantically search project context to find relevant codebase snippets by meaning, enabling AI coding agents to retrieve needed code and decisions without loading entire repositories.

Instructions

Search relevant project context through the UCR public surface.

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_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
top_kNo
project_rootNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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, yet it discloses nothing about ranking, scope of the search, permissions, cost, or whether results are cached. 'Search' implies a read-only operation, but that is inference rather than stated behavior; the output schema covers return values but not the search semantics.

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

Conciseness3/5

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

It is a single short sentence with no padding, so it is concise, but the brevity comes from under-specification and the unexplained 'UCR public surface' phrase occupies the only clause that could have carried useful detail.

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?

An output schema exists, so return values need not be described, but for a three-parameter search tool with zero annotation coverage and zero schema coverage the description leaves too much open. Undefined acronyms and undocumented parameters mean an agent cannot call it confidently without opening the schema.

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% for three parameters, and the description compensates for none of them: 'query' is only implied, while 'top_k' (result count) and 'project_root' (search scope) are never mentioned. The agent must guess the meaning and effect of two of the three inputs.

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 verb 'search' and the resource 'project context' are identifiable, but the qualifier 'through the UCR public surface' is unexplained internal jargon that adds no discriminating information. Nothing distinguishes this from siblings such as search_codebase_tool, find_in_codebase, or auto_search, so an agent cannot tell which search to pick.

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 statement of when to use this tool, when not to, or which sibling to prefer for codebase vs. project-context vs. chat-context retrieval. The only hint is the word 'context', which is too weak to route an agent among the many search siblings.

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