Skip to main content
Glama

search_context

Search a project index to find relevant files by keyword or tag without scanning the entire directory.

Instructions

Recherche dans l'index du projet pour trouver des fichiers pertinents par mot-clé ou tag, sans scanner tout le répertoire.

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": {
      "projectPath": "<projectPath>",
      "query": "<query>"
    },
    "name": "search_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoFiltre optionnel par tag
queryYesMot-clé : nom fichier, fonction exportée, composant...
projectPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden, and it only discloses that the lookup hits a pre-built index. It never states that the index must exist first (presumably via index_project), whether the call is read-only, or how results are ranked/limited — real gaps for a tool whose correctness depends on prior indexing.

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 no filler; the core action comes first and the efficiency note follows. Slightly terse for its information density, but nothing is wasted.

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

Completeness3/5

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

With three parameters, no output schema and no annotations, the definition is minimally serviceable but leaves the indexing prerequisite, the read-only nature, and the shape/limits of results unexplained. An agent can guess how to call it but not what to expect back.

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 coverage is 67%, which is mid-range, and the description's "mot-clé ou tag" merely echoes the query and tag properties without expanding on them. The required projectPath parameter is undocumented in both schema and description, and there is no guidance on combining query with tag.

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?

Names a specific verb ("Recherche") and resource ("l'index du projet") and states what the caller gets back in kind ("des fichiers pertinents par mot-clé ou tag"). It implicitly separates itself from indexing/mapping tools via "sans scanner tout le répertoire", but never names a sibling as an alternative.

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?

"sans scanner tout le répertoire" hints that this is the cheap lookup path rather than a filesystem walk, which implies when to reach for it. There is no explicit when-not condition, no prerequisite (e.g. the project must already be indexed), and no named alternative for full-text or structural queries.

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