Skip to main content
Glama

search_context

Read-onlyIdempotent

Search project documents, notes, memories, and indexed code symbols in one query to retrieve relevant context for coding and analysis tasks.

Instructions

Search all project context, including uploaded documents, notes, memories and indexed code symbols.

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
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds real behavioral context by disclosing the four corpora that are searched, which is what makes this a union search. It says nothing about ranking, how results from different corpora are merged, or how the default result cap behaves.

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?

A single front-loaded sentence with the scope statement first and the corpus list after; no filler and no redundancy. It is appropriately sized for the amount of information it chooses to convey.

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?

There is no output schema, so the description is the only place an agent could learn what comes back. For a tool that merges hits from documents, notes, memories and code symbols, the absence of any hint about result shape, heterogeneity or ordering is a meaningful gap.

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 carries the full burden and does not meet it. 'query' is never characterized as natural language vs keyword vs symbol pattern, and 'limit' (default 8) is never mentioned, so an agent cannot tell whether it is a page size, a cap, or a per-corpus quota.

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

Purpose4/5

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

States a specific verb ('Search') and resource ('all project context'), then enumerates the corpora covered: uploaded documents, notes, memories, indexed code symbols. That enumeration makes clear this is a federated/union search rather than a single-source one, which implicitly separates it from search_code and search_memory. It stops short of explicitly naming those siblings, so the distinction is inferred rather than stated.

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

Usage Guidelines3/5

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

The word 'all' implies the tool should be used when the agent does not know which source holds the answer, but there is no explicit when-to-use or when-not statement and no named alternative. An agent facing a specific code-lookup task has to reason on its own that search_code is the narrower fit.

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