Skip to main content
Glama

Withdraw a shipment's ERP confirmation

withdraw_erp_confirmation
DestructiveIdempotent

Deletes data: takes back the confirmation of one shipment's figures for the ERP, as the person who connected this app, and records it in the organization's audit log. The shipment goes back to needing review (one already exported to the ERP with figures unchanged stays exported) and, when its review status changes, the organization's webhooks are told (shipment.confirmation_revoked), so an ERP integration may stop acting on it: use it only when the user asks to withdraw the confirmation, and say which shipment first. Only admins and owners can do this in Trackberry, and only for an organization that signs shipments off explicitly; the answer says so otherwise. A shipment that is not confirmed is left as it is, so it is safe to repeat. Confirm again with confirm_shipment_for_erp. Get the shipment_id from search_shipments.

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": {
      "shipment_id": "<shipment_id>"
    },
    "name": "withdraw_erp_confirmation"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the destructive/idempotent annotations, it discloses the audit-log record, the resulting state change ('goes back to needing review'), a nuanced exception for already-exported shipments with unchanged figures, and downstream webhook emission (`shipment.confirmation_revoked`) that may cause an ERP integration to stop acting. It also explains the no-op behavior for unconfirmed shipments, which is exactly the context the idempotentHint implies but does not explain.

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 critical 'Deletes data:' warning, then consequences, then eligibility, then recovery — a sensible order. It is dense and the parenthetical about already-exported shipments is a long clause, but every sentence carries actionable information.

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 single-parameter mutation with no output schema, the description covers permissions, side effects, webhook propagation, idempotency, and the fallback message when preconditions fail ('the answer says so otherwise'). Nothing needed to invoke it correctly is missing.

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% and the single parameter is already documented with format example 'shp_123' and its provenance. The description's 'Get the `shipment_id` from search_shipments' largely repeats the schema text, adding only a routing hint rather than new semantics.

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?

The description opens with a specific verb and resource: 'takes back the confirmation of one shipment's figures for the ERP,' and immediately names the inverse operation (confirm_shipment_for_erp). An agent can distinguish this from approve_shipment, update_shipment, or archive_shipment 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?

It states the triggering condition ('use it only when the user asks to withdraw the confirmation'), the prerequisite ('say which shipment first'), the recovery path ('Confirm again with confirm_shipment_for_erp'), and where to get the id ('search_shipments'). It also gives eligibility exclusions: admins/owners only, and only for organizations that sign shipments off explicitly.

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