Skip to main content
Glama

Cancel image jobs

cancel_image_jobs
DestructiveIdempotent

Cancel queued image jobs by job ID or request ID; jobs already running or completed cannot be cancelled.

Instructions

Cancel queued image jobs. Jobs already running or completed cannot be cancelled. Use job ids returned by generate_image/list_images, or the request_id used to create a job.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_image_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsNoImage job ids to cancel.
request_idsNoRequest ids used when the jobs were created.

Output Schema

NameRequiredDescriptionDefault
jobsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare that this is a destructive, non-read-only, idempotent operation, so the description does not need to restate those traits. It adds useful behavioral context by restricting cancellation to queued jobs and by explaining how identifiers are sourced, though it does not cover partial-batch outcomes or whether credits are affected.

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, with the action and eligibility constraint front-loaded. Every sentence contributes relevant information and there is no redundant restatement of the title or annotations.

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?

The tool has annotations and an output schema, so the description does not need to explain return values or the safety profile. It covers the critical state restriction and identifier provenance, though it leaves the schema's zero-required-parameter behavior implicit (at least one array presumably must be supplied).

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 100%, so the schema already describes the two arrays adequately. The description adds meaning beyond the schema by explaining that job_ids come from generate_image/list_images and that request_ids are the creation-time identifiers, which helps the agent choose the correct key.

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?

The description states a specific verb and resource ('Cancel queued image jobs') and adds a scope qualifier ('queued') that distinguishes cancellation of pending work from the sibling tools that generate, list, or check jobs. An agent can identify the operation without opening the 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?

It gives a clear exclusion ('Jobs already running or completed cannot be cancelled') and tells the agent where to obtain the identifiers, naming generate_image and list_images. It does not explicitly discuss the relationship between listing/checking jobs and when cancellation is appropriate, but the practical guidance is strong.

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