Skip to main content
Glama

get_refunds

Get refund/return analytics. Reports: summary (total refunds, refund rate, % of revenue — supports compare for WoW/MoM/YoY trend), top_products (most refunded products by amount or rate), by_reason (classifies refund notes into buckets: size_fit_too_small, size_fit_too_large, quality_defect, wrong_item, shipping_late_or_lost, color_style_mismatch, comfort, changed_mind, duplicate, out_of_stock — with top affected products and sample verbatim notes per bucket. The out_of_stock bucket is a fulfilment/overselling signal, not a customer preference. Best for diagnosing high refund rates).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoFor top_products and by_reason: number of results (default: 10)
reportYesReport type
sortByNoFor top_products: sort field (default: amount)
_offsetNoPagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page.
compareNoFor summary: attach a `comparison` block showing the same metrics for the WoW/MoM/YoY/previous-period window with percentage changes.
endDateNoEnd date (YYYY-MM-DD). Defaults to yesterday (last fully-closed day — today is excluded by default to avoid partial-day totals; pass an explicit endDate to include today).
startDateNoStart date (YYYY-MM-DD). Defaults to a 30-day window ending yesterday.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4/5.0
Behavior4/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 well by detailing what each report returns, including bucket semantics and the out_of_stock signal. It does not explicitly state read-only behavior or mention auth/rate limits, though 'Get' strongly implies a safe read operation.

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 purpose and then structured by report type. It is dense but the length is largely justified by the complexity of the three reports and the bucket list, though it could be more scannable with bullets.

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 analytics tool with no annotations and no output schema, the description is quite complete: it covers report types, metrics, comparison support, and bucket meanings. It omits explicit read-only/side-effect statements and pagination details, which are either implied or left to the schema.

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 is 3, but the description adds meaningful semantics beyond the schema. It explains report-specific behavior for summary, top_products, and by_reason, and clarifies compare and sortBy usage. It does not cover _offset or the date defaults, which are only in the schema.

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 and resource: 'Get refund/return analytics.' It clearly enumerates the three report types and their contents. However, it does not explicitly differentiate itself from sibling tools like get_top_products or get_product_analytics, so it falls short of a 5.

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 provides clear usage context with 'Best for diagnosing high refund rates' and explains when to use each report type. It does not name alternatives or state when not to use the tool, so it lacks the explicit exclusions required for 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