Skip to main content
Glama

cancel_shipments

Destructive

Cancel booked consignments by confirming exact CN numbers with the user and setting confirm=true; carrier determines eligibility.

Instructions

Cancel booked consignments. Confirm exact CNs with user before setting confirm=true; eligibility decided by carrier.

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": {
      "cn_numbers": "<cn_numbers>"
    },
    "name": "cancel_shipments"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
cn_numbersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is known. The description adds value beyond that: the confirm=true two-step gate and the fact that eligibility is determined externally by the carrier, which explains why some CNs may fail. It doesn't say whether failures are partial or all-or-nothing, which is the main missing behavioral detail.

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?

Two short sentences with zero filler. The action is front-loaded and the safety instruction follows immediately, so the most consequential information is read first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent batch mutation with no output schema and no parameter descriptions, the definition covers the essential safety gate and the external eligibility dependency. However, it leaves open the batch outcome model — whether one ineligible CN aborts the whole request or the call returns per-CN results — which an agent needs to plan a 50-item cancellation.

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 0%, so the description must carry the parameter meaning. It does well for 'confirm' — implicitly a safety interlock that should only be set after user verification — but says nothing about 'cn_numbers' beyond the instruction to confirm them with the user (no format, no batch-limit, no duplicate handling), even though the schema caps at 50 items.

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?

States a specific verb and resource: 'Cancel booked consignments.' An agent immediately knows this is a cancellation (mutation) operation rather than booking or tracking. It stops short of clarifying scope details such as whether partial cancellation is possible or whether already-cancelled CNs are rejected, which keeps it from a 5.

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 an explicit procedural precondition: 'Confirm exact CNs with user before setting confirm=true.' That is real when-to-use guidance for a destructive tool. It doesn't name any alternative or exclusion (e.g., what to do for unbooked consignments), but the sibling set contains no competing cancel tool, so the practical gap is small.

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