Skip to main content
Glama

Ranked search across projects

search
Read-only

Find passages about a topic across one or many Overleaf projects using relevance-ranked full-text matching. Returns file:line ranges with snippets for follow-up reading.

Instructions

Relevance-ranked full-text search (BM25 with fuzzy and prefix matching) that finds passages about a topic, e.g. "related work on diffusion models", across one or many projects. Returns file:line ranges with snippets; read_file or get_section can then fetch the text.

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 10
queryYes
refreshNo
matchAllNoRequire every query word to appear
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A3.8/5.0
Behavior4/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 genuinely useful context beyond that: the ranking algorithm, that results are file:line ranges with snippets (important since there is no output schema), and the natural follow-up tools. It does not address index refresh or result staleness, which keeps it from a 5.

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 tightly written sentences with zero filler. The core capability is front-loaded and the follow-up guidance is tacked on only after the essential purpose is stated.

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 search tool with no output schema, the description helpfully explains the return shape (file:line ranges with snippets) and the follow-up workflow, and annotations cover safety. The remaining gap is the undocumented refresh parameter and any index-freshness semantics, which an agent would have to guess.

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%: limit, matchAll and projects carry descriptions in the schema, while query and refresh have none. The description illustrates query semantics with a worked example but says nothing about refresh's behavior, and 60% coverage means the description does not fully compensate. Baseline 3 is appropriate.

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 with real specificity: "Relevance-ranked full-text search (BM25 with fuzzy and prefix matching)" and what it finds ("passages about a topic"). It implicitly separates itself from the grep sibling via "ranked" and fuzzy/prefix matching, but never names grep, so the distinction has to be inferred.

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?

The example query and "finds passages about a topic" imply the right context, and it routes the agent onward to read_file/get_section for fetching text. However, it never states when NOT to use this (e.g. exact-match grep) or explicitly compare against the closest sibling, leaving the key choice to inference.

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