Skip to main content
Glama

Confirm a shipment for the ERP

confirm_shipment_for_erp
Idempotent

Changes data: confirms that one shipment's figures are right to go to the ERP, as the person who connected this app, and records it in the organization's audit log. The organization's webhooks are told when the shipment becomes ready (shipment.confirmed), so an ERP integration may act on it: use it only when the user asks to confirm the shipment, and say which one first. Only admins and owners can do this in Trackberry, and the answer says so for anyone else. It only applies to an organization that signs shipments off explicitly (the answer says so otherwise), and not while a check set to block still fails (the answer names it). Confirming figures that are already confirmed changes nothing. Withdraw it with withdraw_erp_confirmation. Get the shipment_id from search_shipments. Answers with the confirmation and the shipment's review_status.

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

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

A5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the audit-log write, the outbound `shipment.confirmed` webhook and its consequence for an ERP integration, role gating, org-level feature gating, blocking-check gating, and idempotent behavior ('already confirmed changes nothing') — matching idempotentHint but explaining it in terms the agent can act on. It also states what the response contains (confirmation plus `review_status`).

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?

Front-loaded with the mutation warning ('Changes data:'), then gating, then the undo route and parameter source. Parenthetical asides ('the answer says so otherwise', 'the answer names it') convey failure-mode behavior compactly rather than as separate prose.

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 single-parameter mutation with no output schema, everything an agent needs is present: preconditions, role requirements, no-op semantics, the reverse operation, the parameter's origin, and the shape of the response. No meaningful gap remains.

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?

Schema coverage is 100% and the single required `shipment_id` is fully described in the schema. The description reinforces the sourcing path ('Get the `shipment_id` from search_shipments') and constrains cardinality to exactly one shipment per call, which the schema's plain string type does not convey.

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 — confirms one shipment's figures for the ERP — and immediately names its inverse sibling (`withdraw_erp_confirmation`), so the agent can distinguish it from other shipment tools without opening the schema. The scope ('one shipment', 'figures are right to go to the ERP') is precise.

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?

Explicit when-to-use ('use it only when the user asks to confirm the shipment, and say which one first'), an explicit undo route (withdraw_erp_confirmation), and the gate conditions that determine when the call will succeed (admin/owner role, org requires explicit sign-off, no blocking check failing). The only missing element is a named alternative for the non-ERP approval path, but approve_shipment is not asserted to be one.

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