Skip to main content
Glama

Refine search results

refine_results
Destructive

Use when an earlier search_providers or research_capability answer missed what was meant: pass its request_ref and the correction in plain words (e.g. 'must integrate with Slack', 'budget is $20/month', 'data must stay in the EU'). Agentery re-runs the search with the changed constraints (the others are kept) and returns the new answer plus what changed. source: 'human' (the user's words), 'agent' (your assessment, default) or 'follow_up'. Agentery sees only the request and correction you send, never your wider conversation. Task answers (search_providers, compare_providers, research_capability, price_benchmark, market_report) carry ONE request_ref plus a 'conversation' block: the facts remembered for the task, any optional clarification questions (at most two, one round) and the exact refine_results call to continue. Answer with plain words, 'unknown' or 'skip'; source is one of human, agent, follow_up. Pass the same request_ref to another task tool to continue the task there. References expire 24 h after the last turn.

Input Schema

NameRequiredDescriptionDefault
sourceNoWhere the correction came from. Default 'agent'.
correctionYesWhat was missing or wrong, in plain words.
request_refYesThe request_ref from the earlier answer (rq_ + 12 hex characters).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "JSON result; identical to the text content block.",
      +  "type": "object"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this is non-read-only, destructive, non-idempotent, and closed-world. The description adds useful behavioral context: Agentery re-runs the search while keeping other constraints, returns the new answer plus what changed, only sees the request/correction rather than the wider conversation, and references expire after 24 hours. It does not fully detail what is destroyed or invalidated by the re-run, so it falls short of 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.

Conciseness4/5

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

The description is front-loaded with the core usage condition and correction examples, then moves into mechanics, privacy scope, task-answer protocol, and expiry. It is dense but appropriate for a multi-step continuation tool. There is some repetition, notably restating the source enum and 'plain words' guidance, which keeps it from being maximally concise.

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

Completeness5/5

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

The description is complete for an agent to call the tool correctly: it covers prerequisites (request_ref), correction format, source semantics, continuation behavior, privacy scope, and expiry. An output schema exists and annotations exist, so return-value details and safety traits are already covered by structured fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by explaining the source values ('human' = user's words, 'agent' = your assessment/default, 'follow_up'), giving correction examples such as 'must integrate with Slack' and 'budget is $20/month', and clarifying that request_ref comes from the earlier answer.

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 action and resource: refine results by passing a request_ref and correction so Agentery re-runs the search with changed constraints. It explicitly names sibling tools (search_providers, research_capability) and distinguishes this tool as the correction/refinement path rather than a fresh search.

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?

It gives explicit when-to-use guidance: 'Use when an earlier search_providers or research_capability answer missed what was meant.' It explains exactly what to pass (request_ref plus correction in plain words), provides examples, and names the alternative continuation path: pass the same request_ref to another task tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources