Skip to main content
Glama

Update return

update_return
Idempotent

Owner/admin only. Manage return cases. action 'create' (order_id, optional grund, positionen [{item_id, menge}], anleitung=false to skip the instruction mail; a withdrawal creates one automatically), 'eingang' (goods arrived, optional zustand), 'geprueft' (checked; system proposes the refund amount: whole order = open amount incl. shipping, partial = returned items; lower betrag only with zustand), 'erstatten' (refund via Stripe/PayPal + credit note; dry_run default true), 'ablehnen' (grund required), 'notiz'. Each step is written to order_audit.

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": {
      "action": "<action>"
    },
    "name": "update_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
grundNo
notizNo
actionYes
betragNo
dry_runNo
zustandNo
order_idNo
anleitungNo
return_idNo
positionenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses non-obvious side effects: a withdrawal auto-creates an instruction mail unless anleitung=false, refunds generate a credit note via Stripe/PayPal, dry_run defaults to true, the system computes the refund amount differently for whole vs partial returns, and every step is written to order_audit. There is mild tension with idempotentHint=true given the 'create' action, but it is a gray area rather than a direct contradiction.

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 access rule and purpose, then a dense but well-organized action list where each parenthetical earns its place by adding a real constraint or default. The nested-parentheses style is cramped, but no sentence is filler.

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?

For a 10-parameter, six-action state machine with no output schema, the description covers per-action parameters, defaults, preconditions, and audit side effects. Gaps remain on what return_id addresses and what the tool returns or how failures surface, but the core decision-relevant information is present.

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

Parameters4/5

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

With 0% schema description coverage, the description carries the full load and mostly succeeds: it explains order_id, grund, positionen's {item_id, menge} shape, anleitung, zustand, betrag, dry_run and notiz in terms of what each does per action. Only return_id is never explained, leaving the agent to infer how an existing case is addressed.

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 concrete resource (return cases) and enumerates six specific action verbs (create, eingang, geprueft, erstatten, ablehnen, notiz), so an agent knows exactly what operation space it is entering. It does not explicitly contrast itself with neighbors like update_order or update_order_status, keeping it just below a 5.

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?

Each action is given its own context of use: 'eingang' means goods arrived, 'geprueft' triggers the system's refund proposal, 'erstatten' issues the money movement, 'ablehnen' is rejection. Preconditions are stated ('ablehnen' requires grund, lower betrag only with zustand), and 'Owner/admin only' sets an access gate. There is no explicit when-not or cross-tool 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