Skip to main content
Glama

Search returns

search_returns
Read-only

Find specific returns across all connected channels. query matches a return ID, order ID or reverse-shipment tracking (AWB) number, matched from the start of the stored id and case-sensitively (send the full id as printed; for a failed scan use diagnose_return_scan). Filter by channel, return bucket, received status, and date range. Each result is a full return record (reason, qty, refund, dates). Money in minor units.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_returns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax records to return (1-25, default 15).
queryNoReturn ID or AWB / tracking number to search for.
sinceNoISO date — only returns initiated on/after this.
untilNoISO date — only returns initiated on/before this.
bucketNoFilter by return category.
channelNoRestrict to one channel code.
receivedNotrue = already received at warehouse; false = awaiting receipt.

Output Schema

NameRequiredDescriptionDefault
itemsNoMatched records.
limitNo
totalNoTotal matches before paging.
offsetNo
messageNo
availableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: matching is prefix-based and case-sensitive, the full printed id should be sent, and monetary values are in minor units. It still says nothing about pagination or what an empty result looks like, so it earns credit but not top marks.

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?

Purpose and the disambiguating alternative are front-loaded, and every sentence carries information. The `query` clause is a dense run-on that packs matching semantics, case sensitivity, and the fallback tool into one sentence, which slightly hurts scannability.

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 7-parameter, fully documented read-only search with an output schema, this covers what an agent needs: what matches, how matching works, how to filter, and how to read monetary values. The only gap is behavior on no-match or result truncation, which is minor given the schema caps `limit` at 25.

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 coverage is 100%, so the baseline would be 3, but the description adds meaning the schema lacks: `query` also matches order IDs (the schema only mentions return ID and AWB) and is matched from the start of the stored id, case-sensitively. The minor-units note clarifies the returned money fields interpretation.

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 opens with a specific verb and resource ('Find specific returns across all connected channels') and immediately distinguishes itself from a near-sibling by routing failed scans to diagnose_return_scan. An agent can tell this is a targeted lookup rather than a summary tool without opening either schema.

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?

It gives clear context for the two usage modes: identifier lookup via `query` versus narrowing by channel, bucket, received status, and date range. It also names the alternative (diagnose_return_scan) for the specific failure case of a scan that doesn't resolve, though it does not contrast itself with get_returns_summary.

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