Skip to main content
Glama

Grep across projects

grep
Read-only

Search one or many Overleaf LaTeX projects by exact text or regex, returning file:line matches with optional context. Uses local snapshots refreshed when Overleaf reports changes.

Instructions

Exact text or regex search (ripgrep) across one or many projects, with file:line results and optional context. Uses local snapshots that refresh automatically when Overleaf reports changes. For topic-style questions use "search" instead.

Input Schema

NameRequiredDescriptionDefault
queryYesText to find, or a regex when regex is true
regexNo
excludeNo
includeNoGlob patterns of files to search, e.g. ["*.tex"] or ["chapters/**"]
refreshNoRe-download the projects before searching
projectsNoProjects to cover: a list of names/ids, or "all". Defaults to the pinned projects, or the 25 most recently updated if none are pinned.
wholeWordNo
maxResultsNoDefault 100
contextLinesNoLines of context around each match (default 1)
caseSensitiveNoDefault: smart case (case-insensitive unless the query has capitals)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: it runs on local snapshots that refresh automatically when Overleaf reports changes, which tells the agent about data freshness and offline behavior.

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?

Three tight sentences, front-loaded with purpose then behavior then routing. Every clause earns its place with no filler.

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

Completeness4/5

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

For a 10-parameter tool with no output schema, the description covers result format (file:line), snapshot freshness, and sibling routing. Minor gaps remain (no explicit note on projects-argument defaulting beyond the schema), but it is nearly complete.

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 description coverage is 70%, so the schema documents most parameters (include, projects, refresh, maxResults, contextLines, caseSensitive). The description only echoes that search can be exact/regex and that context is optional, adding little syntax or default detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (regex/text search via ripgrep across projects) with concrete output shape (file:line results) and names the sibling it is not ("search"). An agent can distinguish it from among the 21 sibling tools without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"For topic-style questions use 'search' instead" explicitly names the alternative and the condition that selects it, which is strong routing guidance. It stops short of a full when/when-not treatment (e.g., no guidance on scope selection or refresh timing), so it is clear but not exhaustive.

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