Skip to main content
Glama

Refine Discovery Results

refine_discovery
Read-onlyIdempotent

Refine a previous discover_products result using conversational follow-ups such as 'cheaper', 'more powerful', 'better energy efficiency', 'only in stock', or explicit new constraints.

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": {
      "previous_state": "<previous_state>",
      "refinement": "<refinement>"
    },
    "name": "refine_discovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (1..25, default 10)
offsetNoPagination offset (default 0)
refinementYesFollow-up instruction (e.g. 'cheaper', 'more powerful', 'only in stock')
previous_stateYesThe applied_constraints object returned by discover_products
top_result_priceNoOptional price of the top previous result to anchor relative 'cheaper' reductions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety and repeatability are covered. The description adds the dependency on a prior discover_products call, but says nothing about how an unapplicable or ambiguous refinement is handled, whether results narrow monotonically, or how pagination interacts with refinement.

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?

A single sentence with the core action and its dependency front-loaded, followed by illustrative refinements. No filler, and every clause contributes information the agent can act on.

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 read-only refinement tool with a nested previous_state object, full schema coverage and no output schema, the description supplies what matters: the lineage from discover_products and the nature of the refinement input. Only edge-case behavior (refinements that cannot be satisfied, interaction with limit/offset) is left unaddressed.

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 100%, so all five parameters including previous_state and top_result_price are already documented in the schema. The description reinforces the conversational form of 'refinement' with examples ('cheaper', 'more powerful', 'only in stock'), which is mild added value over the schema's own example rather than new semantics.

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?

Specific verb ('Refine') tied to a specific resource ('a previous discover_products result'), with concrete examples of the follow-up style it accepts. It is clearly distinguishable from the sibling discover_products, which starts a new search rather than continuing an existing one.

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?

The word 'previous' plus 'discover_products result' makes the triggering context clear: only call this after a discover_products call has produced state. It offers no explicit exclusions (e.g. what to do when refinement is ambiguous or when no prior state exists), keeping it below a 5.

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