Skip to main content
Glama

search_project

Read-only

Find text in an attached Overleaf project's files and return matching lines with file names and line numbers, with optional regex, glob filters, and case-insensitive matching.

Instructions

Search the text files of the attached project. Returns matching lines with file and line number.

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

Input Schema

NameRequiredDescriptionDefault
regexNoInterpret pattern as a Python regular expression.
patternYesText to find. Treated literally unless regex=true.
file_globNoOnly search files matching this glob, e.g. '*.tex' or 'chapters/*'.
ignore_caseNo
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds the return shape (lines with file and line number), but omits important behavior: results appear capped by max_results (default 100) with no warning about truncation, and it doesn't say whether binary/non-text files are skipped or whether case sensitivity applies by default.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and scope, then the result format. No filler or repetition of the name.

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?

For a low-complexity read tool with annotations and no output schema, the description covers purpose and return shape adequately. It is incomplete on truncation at max_results and on default search semantics (case sensitivity, which file types are searched), which an agent would want before trusting a result set.

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 60%: regex, pattern, and file_glob are documented in the schema, but ignore_case and max_results have no description anywhere. The description itself adds no parameter meaning at all, so it does not compensate for the coverage gap, though the remaining gaps are limited to two simple parameters.

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 and resource ('Search the text files of the attached project') plus the shape of the result ('matching lines with file and line number'). This distinguishes it from list_files/read_file without naming a sibling, so it falls just short of a 5.

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?

Usage is implied by 'attached project' (the project must be attached first) and by the content-search framing, but the description never says when to use this versus read_file, list_files, or outline, nor when to prefer regex over literal search. No exclusions or alternatives are given.

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