Skip to main content
Glama

Fix order bps link

fix_order_bps_link

BPS-Bezug einer Bestellung korrigieren (z. B. vom Abgleich falsch zugeordneter Auftrag des alten Systems). aktion loesen: bps_order_id/bps_status/Sendungsnummer entfernen (nur unversendete Bestellungen); aktion status: nur bps_status setzen (cancelled_in_bps, legacy_cancelled, legacy_shipped, legacy_open, waiting, error oder leer). Vorgabe dry_run=true: zeigt vorher/nachher und andere Bestellungen mit demselben BPS-Auftrag – schreibt nichts. Begruendung ist Pflicht. Nur Inhaber/Admins; Audit-Log (aktion bps_korrektur).

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>",
      "aktion": "<aktion>",
      "begruendung": "<begruendung>"
    },
    "name": "fix_order_bps_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
aktionYes
statusNo
dry_runNoVorgabe true (Probelauf)
order_idYes
begruendungYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it names exactly which fields are removed in loesen mode (bps_order_id, bps_status, Sendungsnummer), restricts that mode to unshipped orders, discloses the default dry_run=true semantics (shows before/after and other orders sharing the same BPS order, writes nothing), states the permission requirement (owners/admins only) and that an audit log entry (bps_korrektur) is produced. destructiveHint=false is not contradicted: the removed items are reference fields on unshipped orders, protected by dry-run and audit.

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?

Dense but front-loaded: the problem statement comes first, then each aktion is introduced by a label, followed by dry-run behavior, permissions and audit. No filler sentences; every clause either scopes an operation or discloses a constraint.

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 state-changing repair tool with an unannotated destructive-looking mode and no output schema, the definition covers preconditions, safety default, permissions and audit trail, and even sketches what dry_run returns. The only omission is behavior on edge cases (e.g. order that already has no BPS link, or status value left empty).

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 schema coverage at only 20%, the description carries the load and mostly succeeds: it explains both aktion values, the default and purpose of dry_run, the mandatory nature of begruendung, and enumerates the permitted status values. Remaining gap: it does not explain what each status value means or that status is only relevant when aktion=status (that coupling is implied, not stated).

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 ("BPS-Bezug einer Bestellung korrigieren") plus the concrete failure case that motivates it (misassigned legacy-system order from reconciliation). It then enumerates the two distinct operations (aktion loesen vs. aktion status) with their scopes, so an agent can distinguish the tool from generic update_order/update_order_status siblings without opening the 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 explicit when-to-use context and per-mode preconditions: loesen only for unshipped orders, status only sets bps_status, and dry_run defaults to true so the safe path is the default. It does not explicitly route to or exclude a named sibling (e.g. bps_sync, release_orders_to_bps), but the operational conditions it states are enough to select the tool correctly.

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