Skip to main content
Glama

Get returns summary (Amazon)

get_returns_summary
Read-only

AMAZON ONLY. Amazon returns over a window: total count, total units, and the top return reasons. For returns on any channel use search_returns; for a scan problem use diagnose_return_scan.

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": "get_returns_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback window in days (default 30).

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": false,
      +  "properties": {},
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, non-open-world), so the bar is lower; the description adds the marketplace scoping constraint and signals that this is a pre-aggregated summary rather than a record list. It stops short of stating whether the window is calendar-based or rolling, or any limits on the reason list, which are the remaining behavioral unknowns.

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 compact sentences with zero waste: the scope constraint is front-loaded, the output shape is stated mid-sentence, and the disambiguation clauses are last. Every clause earns its place.

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 one-parameter read-only summary with a full output schema and complete annotations, the description supplies what the structured fields cannot: Amazon-only scope and sibling routing. Minor residual gaps (window semantics, what exactly "top reasons" means) are largely absorbed by the output schema.

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% and the single `days` parameter is fully documented with default 30 and a 1-365 range in the schema. The phrase "over a window" implies that the parameter drives the aggregation, but adds no syntax, default, or boundary meaning beyond the schema, so the baseline 3 applies.

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?

States a specific aggregation over a specific resource: Amazon returns over a window, returning total count, total units, and top return reasons. The "AMAZON ONLY" prefix immediately distinguishes it from channel-agnostic siblings, so an agent can identify it without opening a schema.

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?

Names two concrete alternatives with the condition that selects each: cross-channel returns go to search_returns, scan problems go to diagnose_return_scan. Combined with the Amazon-only scope constraint, both the when and the when-not are explicit.

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