Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Confirm a shipment's freight quote

confirm_shipment

Confirm a shipment's freight quote. Confirms the shipment as you saw it, like the Confirm button in the portal. Only shipments with status PENDING_CONFIRMATION can be confirmed (otherwise 409 shipment_not_decidable). Confirming a shipment doesn't charge your wallet. It creates an amount due that you pay separately. Needs the shipments:write permission.

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": {
      "id": "<id>",
      "version": "<version>"
    },
    "name": "confirm_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's id
versionYesThe shipment's version from the shipment details. If the shipment changed since, you get 409 shipment_changed: read it again and confirm the new version
idempotencyKeyNoMake up a new unique value for each new action; reuse the same value only when retrying the same action.

Output Schema

NameRequiredDescriptionDefault
dataYes
replayedNotrue when this is the saved result of an earlier call with the same idempotencyKey

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The id, as returned by the list and get tools"New value: +"The record's id"
    • changedInput schema / properties / version / description
      Previous value: -"The shipment's version from the get_shipment tool. If the shipment changed since, you get 409 shipment_changed: read it again and confirm the new version"New value: +"The shipment's version from the shipment details. If the shipment changed since, you get 409 shipment_changed: read it again and confirm the new version"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly false, destructive false, idempotent false); the description adds materially beyond that: the wallet is not charged, an amount due is created to be paid separately, a specific 409 path on version mismatch, and the shipments:write permission requirement. That is exactly the behavior an agent needs before invoking a mutation.

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?

Five short sentences, front-loaded with the action, then preconditions, side effects, and permissions in that order. No sentence is redundant or padded.

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 3-parameter mutation with an output schema, the description covers the state gate, the concurrency conflict behavior, the financial side effect, and the required permission, so an agent can call it correctly and interpret failures. Nothing essential 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 version and idempotencyKey semantics are already spelled out in the schema, so the baseline applies. The phrase 'Confirms the shipment as you saw it' does frame version as optimistic concurrency, but adds little that the schema doesn't already say.

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 ('Confirm a shipment's freight quote') and immediately grounds it with an analogy ('like the Confirm button in the portal'), which separates it from siblings like get_quote, cancel_shipment, and estimate_shipment without naming them.

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 a concrete precondition ('Only shipments with status PENDING_CONFIRMATION can be confirmed') and the failure mode (409 shipment_not_decidable). It doesn't explicitly route to an alternative tool, but the state gate is clear enough that an agent knows when not to call it.

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.