Skip to main content
Glama

Sergio by Serviche

Cancel a running import

cancel_import
Idempotent

Cancels a running import (message history or a spreadsheet), as Cancel in the import drawer does; what it already brought in stays. job_id comes from start_history_import or the import list. Pass the same idempotency_key when retrying.

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

Input Schema

NameRequiredDescriptionDefault
job_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, it discloses the most important consequence of the call: already-imported data is retained rather than rolled back, which qualifies the destructiveHint=false and idempotentHint=true hints with real semantics. It omits the failure mode (what happens if the job is already terminal), so it is strong but not complete.

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, front-loaded with the action and its scope, followed by the data-retention guarantee and the parameter sourcing. Nothing is redundant with the title or the schema.

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 two-parameter, no-output-schema tool this covers the essentials: what is cancelled, what survives, where the id comes from, and how retries work. Only terminal-state behavior and the response shape are left implicit.

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 50%, with job_id undocumented in the schema; the description compensates by naming its source (start_history_import or the import list). It also reinforces the retry contract for idempotency_key, adding 'on retrying' context beyond the schema's own description.

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 ('Cancels a running import') plus the two import kinds it applies to, and ties it to a familiar UI affordance (Cancel in the import drawer). An agent can distinguish it from start_history_import, start_spreadsheet_import, and review_import_mapping 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?

Gives concrete operational guidance: the job must be running, job_id originates from start_history_import or the import list, and retries must reuse the same idempotency_key. It does not explicitly state what to do when the import has already finished or failed, which is the one remaining routing question.

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