Skip to main content
Glama

jev_prune_context

Scores up to 100 candidate files, skills, or search results against your task in one call and returns only relevant items sorted by probability.

Instructions

Out-of-context parallel relevance filter & reranker. Scores up to 100 candidate files, skills, or search results in a single ~150ms API call and returns only relevant items sorted by probability.

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": {
      "task": "<task>",
      "candidates": "<candidates>"
    },
    "name": "jev_prune_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesCurrent coding task or bug description
thresholdNoMinimum relevance probability (0-1) to keep an item (default 0.60)
candidatesYesCandidate items to filter and rank (up to 100)
working_directoryNoOptional project workspace directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does supply real behavioral facts: one API call, roughly 150ms, a hard cap of 100 candidates, and that only items above threshold are returned sorted by probability. It omits what happens when more than 100 candidates are passed, whether results are deterministic, and any cost or auth considerations.

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 tight sentences, front-loaded with what the tool is and immediately followed by the scale, latency, and return contract. No filler or redundant restatement of the name.

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?

All four parameters are schema-documented and the description covers the return contract, which matters since no output schema exists. Only edge behavior at the 100-candidate cap and the role of the optional working_directory are left unaddressed, which are minor gaps for a scoring utility.

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 100%, so the schema already documents task, candidates, threshold (with its 0.60 default), and working_directory. The description's mention of files, skills, and search results loosely restates the schema's 'File path, skill name, or identifier' and adds no syntax or format detail beyond it, so the baseline of 3 applies.

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 specific verb set (scores, filters, reranks) and a concrete resource (candidate files, skills, or search results), plus the output shape (only relevant items sorted by probability). It is clear what the tool does, but it never contrasts itself with plausible siblings such as jev_classify_batch or jev_route_task.

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 'out-of-context' framing and the ~150ms single-call detail imply the intended usage of cheaply pruning a large candidate set before loading it into context. There is no explicit when-to-use statement, no exclusion of alternatives, and no guidance on choosing this over the batch/classify siblings.

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