Skip to main content
Glama

Refund a store order

refund_store_order
DestructiveIdempotent

Store administration: works on the business's own link-in-bio store in Ignix, which the user manages as its owner. Nothing is bought or sold in this chat; the store's customers buy on the store page, paid to the business's own Stripe account. Refund a store order IN FULL from the business's own Stripe account (the money leaves its Stripe balance, the buyer gets it back and the order is marked refunded). It cannot be undone. Always confirm the order, buyer and amount with the user before calling it.

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": {
      "orderId": "<orderId>"
    },
    "name": "refund_store_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesOrder id (from list_store_orders).
workspaceIdNoDefaults to the workspace this connection is scoped to.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds real behavior beyond them: money leaves the business's Stripe balance, the buyer receives it, the order is marked refunded, only full refunds are possible, and the action is irreversible. That is exactly the consequence information an agent needs before a destructive call.

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?

Three sentences, front-loaded with the store/ownership scope before the destructive action and the confirmation rule. The opening "Store administration:" framing is slightly preamble-like but earns its place by preventing confusion with ordinary checkout flows.

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?

No output schema exists, and the description covers consequence, irreversibility, scope and a pre-call confirmation requirement, which is sufficient for a destructive one-required-param tool. Only the return payload is left unspecified, a minor gap for a mutation whose outcome is described in prose.

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%, so orderId, workspaceId default and idempotencyKey retry semantics are already documented in the schema. The description's mention of confirming order, buyer and amount adds only contextual framing, not new parameter meaning, 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 verb and resource ("Refund a store order IN FULL") and immediately scopes it to the business's own link-in-bio store paying from its own Stripe account. An agent can distinguish this from list_store_orders or the product/block tools without opening any 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?

Gives a strong precondition — always confirm order, buyer and amount with the user before calling — and implicitly limits use to full refunds only. It does not name an alternative (no partial-refund sibling is listed) or state explicit exclusions, so it falls just short of a full when/when-not mapping.

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