Skip to main content
Glama

Search workspace and rank matches with Jev

search_and_rank
Read-onlyIdempotent

Runs ripgrep and ranks matches by relevance, returning only top results when raw search exceeds 20 candidates or 4K tokens.

Instructions

Run read-only ripgrep inside the current workspace, then use Jev to return only relevant matches. Use automatically when raw search would exceed 20 candidates or about 4K tokens. English judgments only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoliteral
top_kNo
patternsYes
exclude_globsNo
include_globsNo
relevance_criterionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
usageYes
statusYes
resultsYes
truncatedYes
evaluated_countYes
fallback_reasonNo
raw_match_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds behavioral context beyond annotations: it reveals that the tool runs ripgrep internally, that it uses Jev for relevance ranking, and that it returns only relevant matches. It also discloses the 'English judgments only' limitation. This adds meaningful behavioral transparency beyond the structured annotations.

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 sentences, each earning its place: the first states the mechanism, the second gives the trigger condition, the third adds a constraint. The most important information (read-only, ripgrep, Jev ranking) is front-loaded. No wasted words.

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?

The tool has an output schema, so return values are covered. The description explains the core pipeline (ripgrep + Jev), the trigger condition, and the English-only constraint. It doesn't explain what 'relevant' means in terms of the relevance_criterion parameter, but the parameter name and schema make that reasonably clear. For a 6-parameter tool with an output schema, this is nearly complete. The only gap is a bit more detail on how the relevance_criterion interacts with Jev, but that's a minor omission.

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 0%, so the description must compensate. The description mentions 'patterns' implicitly via 'ripgrep' and 'relevance_criterion' via 'relevance', but it doesn't explain the semantics of mode, top_k, exclude_globs, include_globs, or the relationship between patterns and relevance_criterion. The description adds some context (the tool is a search+rank pipeline) but doesn't fully compensate for the 0% schema coverage. Baseline 3 is appropriate because the description gives a general sense of the parameters but leaves the agent to infer details from 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?

The description states a specific verb ('run read-only ripgrep'), a resource ('current workspace'), and a distinct post-processing step ('use Jev to return only relevant matches'). It also names the sibling tool 'classify_items' implicitly by contrast? Actually it doesn't name the sibling, but it clearly distinguishes itself from a raw search by describing the ranking step. The verb+resource+scope is specific enough to differentiate from a generic search tool.

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

Usage Guidelines5/5

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

The description explicitly says 'Use automatically when raw search would exceed 20 candidates or about 4K tokens.' This is a clear when-to-use condition. It also implies when not to use it (when raw search is small enough), and the 'English judgments only' note adds a constraint. This is strong usage guidance.

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

Deploy Server

Other Tools