Skip to main content
Glama

cancel_import_job

Cancel a queued/running import. Owner/admin only. A terminal job (succeeded/failed/partial) → 409 conflict; a queued/running job is landed in 'failed' and its transient token dropped so an unclaimed job never runs (cancelling an already-running job is best-effort). 404 if the job belongs to another org. Mirrors POST /v1/orgs/{org_id}/import-jobs/{id}:cancel.

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": {
      "org_id": "<org_id>",
      "job_id": "<job_id>"
    },
    "name": "cancel_import_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
org_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does it well: authorization requirement (owner/admin), terminal-state conflict (409), the actual state transition (job landed in 'failed', transient token dropped so an unclaimed job never runs), the best-effort caveat for already-running jobs, and cross-org 404. This is exactly the mutation-safety context an agent needs before calling.

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?

Front-loaded with the action and permission, then error/transition detail in a single dense paragraph with no filler. The closing REST-endpoint mirror is useful for developers but is the least essential sentence.

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?

An output schema exists, so return values need no explanation; the description covers permissions, preconditions, resulting state, error codes, and best-effort semantics — everything needed to invoke and interpret a cancel operation correctly.

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 compensate, and it partially does: the 404-on-other-org note tells the agent job_id is scoped under org_id. It adds no format or identification detail beyond that, though both params are self-evident UUIDs.

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+resource ("Cancel a queued/running import") and pins down scope further with ownership and job-state qualifiers, so an agent can distinguish it from get_import_job/list_import_jobs without opening a 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 a clear condition for use (only queued/running jobs) and spells out what happens on the excluded case (terminal job → 409). It does not explicitly name a sibling alternative for inspecting state first (e.g. get_import_job), so it falls short of full routing guidance.

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