Skip to main content
Glama

search_files

Find matching lines in bounded UTF-8 project files, optionally filtered by extension, to locate text across a LaTeX project safely.

Instructions

Find matching lines in bounded UTF-8 project files, optionally by extension.

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It does add real behavioral constraints — files are UTF-8 only, scoped to 'project files', and the search is 'bounded' (implying a result cap) — but it omits matching semantics (literal substring vs regex), case sensitivity, and whether the tool is strictly read-only.

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?

One front-loaded sentence with no filler, and the optional filter is placed after the core action. It is terse to the point of dropping needed semantics, but no wording 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?

An output schema exists, so return values need not be described. Still, for a search tool with zero annotation coverage and zero parameter documentation, the definition leaves the agent guessing about match semantics and result bounds, which are central to calling it correctly.

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 0%, so the description must compensate. It explains that extensions is an optional narrowing filter, and 'matching lines' hints that query is a pattern, but it never states whether query is literal text, a regex, or case-sensitive — a meaningful gap for the single required parameter.

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 concrete verb ('Find matching lines') plus the resource and scope ('bounded UTF-8 project files'), which separates it from siblings like read_file, list_files, and write_file. It stops short of explicitly naming an alternative or stating the boundary case, so a 5 is unwarranted.

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: nothing says when to prefer this over list_files or read_file, whether it searches one file or the whole project, or what conditions call for the extensions filter. Usage is only inferable from the verb.

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