Skip to main content
Glama

Cancel the import

cancel_import
Destructive

Cancel an import batch. Nothing from it becomes a ticket. It acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.

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": {
      "batchId": "<batchId>"
    },
    "name": "cancel_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchIdYesThe import's id: importInFlight.batchId from get_onboarding_progress.
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes well beyond them by disclosing the scope of destruction (no items become tickets) and the human-agreement handshake with its exact return value (confirmation_required) and the confirm: true override. This is exactly the kind of pre-mutation behavior an agent needs and cannot read off 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 short sentences, front-loaded with purpose and effect before the confirmation protocol. No filler or repetition of the title.

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 two-parameter destructive tool with no output schema, the description covers purpose, side effects, and the confirmation contract including the non-confirmed response. The only omission is what a confirmed call returns, which is minor against the destructive-hint annotation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%; batchId is documented in the schema itself, while the undocumented confirm parameter is fully explained in prose — what happens with and without it. That compensates well, though it never states the behavior of confirm: false explicitly and adds no value on batchId beyond the schema.

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 import batch") and immediately gives the outcome that differentiates it from the committing siblings: "Nothing from it becomes a ticket." An agent can tell this is the abandonment path rather than the commit path without consulting another 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?

Explicitly describes the two invocation modes: call without confirm to get confirmation_required plus a summary, call with confirm: true to actually act. This is clear operational guidance for how to sequence the call, though it does not contrast cancelling with committing the batch or say when cancellation is appropriate.

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.

Resources