Skip to main content
Glama

source_search

Read-onlyIdempotent

Search the ce source at HEAD with a regular expression (git grep -E), in one repo or all you may...

Input Schema

NameRequiredDescriptionDefault
maxNo
repoNo
patternYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / max / description
      Removed value: -"hits, default 100, at most 500"
    • removedInput schema / properties / repo / description
      Removed value: -"optional: one repo; empty = all"
  2. Changed2 schema fields changed
    • addedInput schema / properties / max / description
      Added value: +"hits, default 100, at most 500"
    • addedInput schema / properties / repo / description
      Added value: +"optional: one repo; empty = all"
  3. Changed2 schema fields changed
    • removedInput schema / properties / max / description
      Removed value: -"hits, default 100, at most 500"
    • removedInput schema / properties / repo / description
      Removed value: -"optional: one repo; empty = all"
  4. Changed2 schema fields changed
    • addedInput schema / properties / max / description
      Added value: +"hits, default 100, at most 500"
    • addedInput schema / properties / repo / description
      Added value: +"optional: one repo; empty = all"
  5. Changed2 schema fields changed
    • removedInput schema / properties / max / description
      Removed value: -"hits, default 100, at most 500"
    • removedInput schema / properties / repo / description
      Removed value: -"optional: one repo; empty = all"
  6. Changed2 schema fields changed
    • addedInput schema / properties / max / description
      Added value: +"hits, default 100, at most 500"
    • addedInput schema / properties / repo / description
      Added value: +"optional: one repo; empty = all"
  7. Changed2 schema fields changed
    • removedInput schema / properties / max / description
      Removed value: -"hits, default 100, at most 500"
    • removedInput schema / properties / repo / description
      Removed value: -"optional: one repo; empty = all"
  8. Changed2 schema fields changed
    • addedInput schema / properties / max / description
      Added value: +"hits, default 100, at most 500"
    • addedInput schema / properties / repo / description
      Added value: +"optional: one repo; empty = all"
  9. Changed3 schema fields changed
    • removedInput schema / properties / max / properties
      Removed value: -null
    • removedInput schema / properties / pattern / properties
      Removed value: -null
    • removedInput schema / properties / repo / properties
      Removed value: -null
  10. Changed5 schema fields changed
    • removedInput schema / properties / max / description
      Removed value: -"hits, default 100, at most 500"
    • addedInput schema / properties / max / properties
      Added value: +null
    • addedInput schema / properties / pattern / properties
      Added value: +null
    • removedInput schema / properties / repo / description
      Removed value: -"optional: one repo; empty = all"
    • addedInput schema / properties / repo / properties
      Added value: +null
  11. Added

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so safety is covered. The description adds genuine value by pinning the search to HEAD and to git grep -E semantics (extended regex, tracked content only), but it omits what a match returns and whether history or working-tree changes are excluded.

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 lead clause is efficiently front-loaded with the essential facts, but the definition is cut off mid-sentence ('all you may...'), which reads as an incomplete artifact rather than deliberate brevity.

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 three-parameter search tool with no output schema, an agent still cannot tell what results look like (file/line pairs? snippets?), what 'max' caps, or whether uncommitted files are searched. Combined with the truncation, the definition is not sufficient to call the tool confidently.

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 coverage is 0%, so the description carries the full burden. It clarifies that 'pattern' is an extended regular expression and that 'repo' scopes to one repo or all, but 'max' is never mentioned and the truncated tail leaves the repo-scoping rule ambiguous.

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 (ce source at HEAD) plus the underlying implementation (git grep -E), which tells an agent exactly what kind of matching to expect. It does not differentiate itself from plausible siblings such as repo_search, directory_search, or source_read, and the phrase 'ce source' is left unexplained.

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?

The fragment 'in one repo or all you may' hints that scope is selectable, but there is no statement of when to reach for this tool instead of repo_search, source_read, or source_tree. No exclusions or prerequisites are given, and the sentence trails off before any guidance lands.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources