Skip to main content
Glama

Refund an order

polar_create_refund
Destructive

Refund an order, in full or in part. This moves real money back to the customer. Polar: POST /v1/refunds/.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoAmount in the currency's minor unit (cents). Omit to refund the full order.
reasonYesWhy the refund is being issued.
commentNoAn internal note about the refund.
order_idYesThe order to refund.
revoke_benefitsNoAlso revoke the benefits the order granted. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The destructiveHint annotation already flags this as a destructive operation, and the description earns credit by spelling out the concrete consequence: it moves real money back to the customer. That goes beyond the annotation's abstraction. It still omits whether the operation is reversible or idempotent, what auth/permissions are needed, and whether benefit revocation is permanent, so it is not full marks.

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 short sentences, front-loaded with the action and scope, then the risk warning, then the endpoint. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive financial mutation with no output schema, the description covers the action, scope and monetary impact but says nothing about what is returned, whether a refund can be reversed or re-issued, or any idempotency behavior. Adequate against a fully documented schema and a destructiveHint annotation, but not complete for the operation's risk profile.

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 description coverage is 100%, so amount, reason, comment, order_id and revoke_benefits are all documented in the schema itself, including the enum and defaults. The description's only parameter-relevant contribution is 'in full or in part', which duplicates the schema's 'Omit to refund the full order'. Baseline 3 is correct.

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?

'Refund an order, in full or in part' gives a specific verb and resource plus a scope qualifier, and no sibling tool performs refunds, so it is easy to distinguish from the surrounding list/get/cancel tools. It stops short of naming an alternative or contrasting with, say, cancel_subscription, so it is clear but not sibling-differentiating.

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 reach for this tool versus alternatives (e.g., cancel_subscription, list_refunds) or any prerequisite such as having an existing order or the appropriate API scope. The only adjacent guidance is a warning about money moving, which is behavioral rather than usage-routing.

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.