Skip to main content
Glama

Cancel marketplace order

cancel_marketplace_order
Destructive

eBay-, Hood-, Kaufland- oder OTTO-Bestellung stornieren (Kaufland/OTTO: nur grund noStock; Amazon: im Seller Central). Hood: updateOrderStatus 'cancelationPending', Hood mailt dem Kaeufer die Nachricht. eBay: Post-Order-API (Verkaeufer-Storno, Grund noStock/defect = OUT_OF_STOCK – kann als Verkaeufer-Mangel zaehlen; revoked = BUYER_ASKED_CANCEL); eBay erstattet bezahlte Bestellungen dabei meist selbst. grund: noStock (nicht lieferbar), noPayment (nicht bezahlt), revoked (Kaeufer widerruft), defect. Gesperrt, wenn schon versendet, schon storniert oder bereits bei BPS (dort zuerst stornieren) – ausser BPS hat den Auftrag schon storniert (bps_status cancelled_in_bps/legacy_cancelled) oder trotz_bps nennt die Begruendung (min. 10 Zeichen, steht im Protokoll). Vorgabe dry_run=true: zeigt Bestellung, Kaeufer, Betrag, ob eine Erstattung noetig ist, und die Nachricht – schreibt nichts. dry_run=false = Freigabe. Bezahlte Bestellungen: das Geld muss danach erstattet werden (wird nicht automatisch ausgeloest). Nur Inhaber/Admins; Audit-Log.

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>",
      "grund": "<grund>"
    },
    "name": "cancel_marketplace_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
grundYes
dry_runNoVorgabe true (Probelauf)
order_idYes
nachrichtNoan den Kaeufer; leer = Standardtext zum Grund
trotz_bpsNonur wenn ein BPS-Bezug sperrt: Begruendung, warum trotzdem storniert wird (z. B. 'BPS-Auftrag telefonisch storniert')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true / idempotentHint=false: it discloses the mandatory dry_run=true preview (shows order, buyer, amount, refund need, message, writes nothing), that dry_run=false is the commit, that refunds are NOT triggered automatically for paid orders, the owner/admin permission gate, and audit logging. Per-platform side effects (Hood mails the buyer, eBay usually refunds itself, eBay seller-cancel reason may count as seller defect) are exactly the kind of risk context annotations cannot express.

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?

Front-loaded with the purpose and platform scope, and essentially every sentence adds operational information. It is a dense, run-on single block in German, though, and would read better split by concern (platform rules / blocking rules / dry_run / permissions) rather than semicolon-chained clauses.

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?

For a destructive, non-idempotent, multi-platform mutation with no output schema, the description covers safety preview, blocking preconditions, override path, refund follow-up, and authorization. Nothing an agent needs to decide whether and how to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 60% schema coverage the description compensates: it explains each grund value semantically (noStock = not deliverable, noPayment = unpaid, revoked = buyer withdrawal, defect, including eBay's OUT_OF_STOCK/BUYER_ASKED_CANCEL mapping), the dry_run default and its two-phase meaning, nachricht as buyer message with empty = default text, and trotz_bps requiring a min. 10-character justification that gets logged.

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 (stornieren/cancel) plus resource (marketplace order) and immediately scopes it by platform, noting Kaufland/OTTO only allow noStock and Amazon must be done in Seller Central. An agent can distinguish it from refund_marketplace_order or update_order_status 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 Guidelines5/5

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

Explicitly names the blocking conditions (already shipped, already cancelled, already at BPS) and the exception path via bps_status cancelled_in_bps/legacy_cancelled or a trotz_bps justification. It also routes the agent elsewhere for Amazon (Seller Central) and for BPS-side cancellation, so when-to-use and when-not-to-use are both covered.

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