Skip to main content
Glama

Search files

search_files
Read-onlyIdempotent

Search file contents (grep)

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

Input Schema

NameRequiredDescriptionDefault
maxNo
queryYes
regexNo
includeNo
project_idNoProject id (or use session from use_project)
case_insensitiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds nothing beyond that: no mention of result limits, pagination, whether max truncates silently, or how regex/case_insensitive interact.

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?

At four words it is front-loaded and waste-free, but the brevity reflects under-specification rather than disciplined conciseness. The parenthetical is the only structural aid and it carries more weight than it can bear.

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

Completeness1/5

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

For a six-parameter tool with 17% schema coverage, no output schema, and no annotations covering input semantics, a single-line description leaves most of what an agent needs to call it correctly unstated. Nothing explains the format of query, the meaning of include, or what max bounds.

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 only 17%, with just project_id documented, leaving query, max, regex, include and case_insensitive undefined in the schema. The grep reference hints weakly at regex and case-sensitivity behavior, but the description supplies no meaning for max, include (glob? file type?), or default case sensitivity.

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?

The description gives a specific verb plus resource ("Search file contents") and the grep analogy makes clear it matches inside files rather than by filename, implicitly separating it from glob_files/list_files. It does not name a sibling outright, so it stops short of full differentiation.

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 or when-not guidance. An agent gets no signal about choosing this over glob_files, list_files, or bash-based grep, nor about prerequisites such as needing a project_id or active session.

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