Skip to main content
Glama

list_order_refunds

Read-onlyIdempotent

Retrieve a given order's refunds oldest first, showing paid, refunded, pending, and remaining cents so you can verify refundable amounts.

Instructions

An order's refunds, oldest first, with what its payment collected (paid_cents), what has been refunded (refunded_cents), refunds still pending at the provider (pending_cents) and what can still be refunded (remaining_cents).

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": {
      "order_id": "<order_id>"
    },
    "name": "list_order_refunds"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe order number as customers and admins see it, e.g. "SF-10042", or the numeric order id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description does add genuine context beyond that: result ordering and the meaning of the four derived aggregate fields, including that pending_cents sits "at the provider". It omits anything about pagination, behavior for a missing order, or failure modes.

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?

One dense but front-loaded sentence with zero filler; the resource and ordering come first, then the returned fields. The parenthetical field mappings are compact rather than wasteful.

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?

With no output schema, the description usefully enumerates the return fields and what each means, which is exactly what an agent needs for a read-only aggregate tool. The main gap is that it says nothing about empty results or how a nonexistent order is handled.

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 order_id parameter is fully documented in the schema, including that it accepts either the customer-visible number or the numeric id. The description adds nothing about the parameter, so baseline 3 applies.

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 names a specific resource ("An order's refunds") and its ordering ("oldest first"), plus the derived amounts returned. It is clearly distinct from siblings like get_order or revenue_summary, though it never uses an explicit verb like "list" and leans on the name for that.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool, when to prefer get_order or reconciliation_status instead, or any prerequisite (e.g. order must exist). Usage is only inferable from the resource it describes.

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