Skip to main content
Glama
mcp-developer-context-server

mcp-developer-context-server

Search codebase

search-codebase

Search project files by pattern, with an optional glob to limit results to specific paths or file types.

Instructions

Search files by pattern with optional glob

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": {
      "pattern": "<pattern>"
    },
    "name": "search-codebase"
  }
}

Input Schema

NameRequiredDescriptionDefault
globNo
patternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations provided, the description carries the full disclosure burden and does not meet it. It never says whether matching is regex, glob, or substring; whether the search covers file names, contents, or both; whether results are truncated or paginated; or whether the operation is read-only. A single ambiguous sentence is not enough for a zero-annotation tool.

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?

The single sentence is front-loaded and free of filler, which is structurally sound. However, the brevity is under-specification rather than economy — a few more words defining the search target and matching semantics would earn their place.

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?

The tool is simple (2 params, no nested objects, no output schema), so complete documentation is achievable in two or three sentences. The description instead leaves the fundamental question — filename vs. content search — unanswered, which is information an agent needs to select and invoke this tool correctly.

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 both parameters and largely fails. It marks 'glob' as optional but never defines its relationship to 'pattern' (does glob scope the directory, filter extensions, override pattern?), leaving the agent unable to construct a correct call in non-trivial cases.

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 files by pattern' states an action and a target, but leaves the core ambiguity unresolved: whether 'pattern' matches file names or file contents. It gives no distinguishing detail against siblings like project-structure or validate-json, so an agent can guess the domain but not the exact operation.

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 when-to-use guidance at all — no prerequisites, no exclusions, and no mention of when a sibling tool would be preferable. 'Optional glob' is the only hint about a usage mode, and it is stated as a schema fact rather than guidance.

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