Skip to main content
Glama

cancel_parcel

DestructiveIdempotent

Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly, with immediate upstream cancellation where supported and eligibility checks plus portal actions for Steadfast.

Instructions

Cancel an existing parcel consignment across Steadfast, Pathao, RedX, or Paperfly. For carriers with automated cancellation APIs (Pathao, RedX, Paperfly), executes live upstream cancellation immediately. For Steadfast, validates parcel eligibility, marks internal status as CANCEL_REQUESTED, and provides direct portal action links.

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": {
      "courier": "<courier>",
      "consignment_id": "<consignment_id>"
    },
    "name": "cancel_parcel"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional cancellation reason (e.g. 'Customer cancelled', 'Address incorrect')
courierYesCourier provider name
consignment_idYesConsignment ID or tracking code to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: Pathao/RedX/Paperfly perform live upstream cancellation while Steadfast only validates, sets CANCEL_REQUESTED internally, and returns portal action links — a partial-cancellation asymmetry an agent could not infer from structured fields.

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 sentences, zero padding, with the general action front-loaded and the carrier-specific branching following immediately. Every clause conveys operationally distinct information.

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, cross-provider mutation with no output schema, the description covers the key divergence in behavior and hints at returned portal links. Minor gaps remain: no statement of what happens when Steadfast validation fails, and no confirmation of idempotency semantics for the live-cancellation carriers.

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% with enum-constrained `courier` and documented `reason`, so the schema carries parameter meaning. The description only indirectly adds semantics by explaining that `courier` changes runtime behavior; it says nothing about `consignment_id` format beyond the schema's 'ID or tracking code'.

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 ('Cancel an existing parcel consignment') and enumerates the supported carriers, which cleanly separates it from create_parcel, update_parcel, and track_parcel 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The carrier-by-carrier breakdown tells an agent what to expect depending on the `courier` argument, which is directly decision-relevant. It stops short of explicit when-not guidance or prerequisites (e.g. when to update rather than cancel), so it is clear context rather than full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.