Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Cancel a shipment you requested

cancel_shipment
Destructive

Cancel a shipment you requested. Only shipments you requested that we haven't quoted yet (status DRAFT) can be cancelled; their stock is available again. Otherwise 409 shipment_not_cancellable: contact your account manager. No request body. 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>"
    },
    "name": "cancel_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's id
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. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The id, as returned by the list and get tools"New value: +"The record's id"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already mark this as destructive and non-idempotent, and the description adds real behavior on top: stock is released back on success, an exact failure status and error code are given, and the required shipments:write permission plus the absence of a request body are disclosed. That is well beyond what the structured fields convey.

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?

Three short clauses, correctly front-loaded: eligibility first, failure path second, prerequisites last. No filler and every sentence carries a distinct fact.

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 destructive mutation with an output schema available, the description covers preconditions, side effects, the error case, and auth, which is most of what an agent needs. The one soft spot is that the idempotentHint=false annotation versus the idempotencyKey parameter is not reconciled in the text.

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 description coverage is 100%, so both id and idempotencyKey are already documented in the schema. The description adds only the framing note "No request body" and does not elaborate on id, while the idempotencyKey sits slightly at odds with idempotentHint=false without explanation; baseline 3 is appropriate.

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 opens with a specific verb plus resource ("Cancel a shipment") and narrows the scope with "you requested," so the agent knows this is a cancellation action tied to the caller's own records. It does not explicitly compare itself to adjacent tools such as cancel_order or confirm_shipment, so sibling differentiation is left implicit.

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?

It states precisely when the tool applies (shipments you requested that are still DRAFT/unquoted) and when it does not (otherwise 409 shipment_not_cancellable, escalate to the account manager). That is clear when/when-not guidance; the only gap is that it does not name an alternative tool for the non-cancellable case.

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.