Skip to main content
Glama

Refund marketplace order

refund_marketplace_order
Destructive

Webshop-Bestellung (Stripe/PayPal): ganz oder teilweise erstatten (betrag; leer = Rest), Gutschrift -S als Beleg mit PDF, Status refunded/partially_refunded, Mail an den Kunden; grund ist Pflicht. Marktplatz: Stornierte Bestellung voll erstatten. eBay: zeigt bezahlt/erstattet laut eBay; nur wenn noch offen, volle Erstattung per issue_refund (dry_run=false). Hood (HoodPay): inkl. Versandkosten per Browser auf der Hood-Website, da die Hood-API keine Erstattung kennt. Nur fuer Hood-Bestellungen mit Status storniert (erst cancel_marketplace_order), nur einmal je Bestellung. Prueft im Hood-Formular Bestellnummer und Betrag gegen die Bestellung. Vorgabe dry_run=true: oeffnet nur das Formular und vergleicht den Betrag – sendet nichts. dry_run=false = Freigabe (Hood bestaetigt 'Rückerstattung eingeleitet'). Dauer ca. 20–40 s. Nur Inhaber/Admins; Audit-Log (aktion erstattet).

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

Input Schema

NameRequiredDescriptionDefault
grundNonur Webshop: Grund (Widerruf, Retoure, Kulanz …) – steht auf der Gutschrift
notizNoHinweis an den Kaeufer; leer = Standardtext
betragNonur Webshop: Teilbetrag in EUR; leer = gesamter offener Betrag
dry_runNoVorgabe true (Probelauf)
order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructive, openWorld, and non-idempotent behavior. The description adds crucial context beyond that: dry_run=true only opens and compares the Hood form, dry_run=false actually triggers the refund, Hood refunds are once per order, only owners/admins may call it, an audit log entry is written, and a PDF credit note plus customer email are produced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and mostly earns its place, but it is delivered as one long semicolon-separated paragraph. Platform branches and safety conditions would be easier to scan if structured, so length is justified but readability is not optimal.

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

Completeness5/5

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

There is no output schema, yet the description covers outcomes (refunded/partially_refunded, Hood confirmation), prerequisites, permissions, audit logging, timing, and side effects. That is complete enough for a complex, destructive, multi-platform refund tool.

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 80%, so betrag, dry_run, notiz, and grund are already documented. The description adds platform scoping and reiterates defaults, but its statement 'grund ist Pflicht' conflicts with the schema's required list, which requires only order_id, reducing clarity on actual requiredness.

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?

Starts with a specific verb and resource: full or partial refund of a marketplace order. It then explicitly routes by platform (Webshop, Marktplatz, eBay, Hood) and names the relevant alternatives cancel_marketplace_order and issue_refund, so an agent can distinguish it from siblings.

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?

Gives explicit when-to-use and when-not-to-use rules: eBay only when still open and via issue_refund; Hood only for cancelled orders, only once, after cancel_marketplace_order; Webshop allows partial refunds while marketplace refunds are full. This is strong routing guidance.

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