Skip to main content
Glama

Fulfillbot: China Sourcing & Dropshipping

Cancel an order that needs attention

cancel_order
Destructive

Cancel an order that needs attention. Only orders with status NEEDS_ATTENTION can be cancelled here (otherwise 409 order_not_editable); for other orders contact your account manager. The body is optional. Needs the orders: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_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's id
reasonNoWhy you cancel the order, up to 500 characters. Optional; our team can see it.
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.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the mutation risk is covered structurally. The description adds real context beyond that: the orders:write permission requirement, the concrete 409 error code on ineligible orders, and the fact that the supplied reason is visible to the team. It stops short of describing irreversibility or what state the order lands in.

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?

The eligibility gate is front-loaded in the first sentence, followed by the error behavior and the permission requirement, with no filler. The sentence 'The body is optional' is slightly vague and largely redundant given the required-parameter list.

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 three-parameter destructive mutation with full annotation coverage and an output schema, the description covers the gating condition, auth requirement, error behavior, and side effects. Nothing an agent needs 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 description coverage is 100%, so all three parameters are already documented in the schema. The description only adds that the body is optional, which is already implied by 'required: [id]', and repeats that the reason is team-visible, which the schema's reason field already says. Baseline 3 is appropriate.

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+resource ('Cancel an order') and immediately narrows scope to orders in NEEDS_ATTENTION status. Combined with the resource name, an agent can distinguish this from cancel_shipment without opening either 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 exact precondition for use (status NEEDS_ATTENTION), the failure mode otherwise (409 order_not_editable), and an alternative path (contact your account manager). That is explicit when-to-use and when-not-to-use guidance rather than implied context.

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.