Skip to main content
Glama
naipi11
by naipi11

取消 GPT 图片任务

cancel_image_job

Cancels a queued or running local image job and stops local waiting; use when a job is no longer needed. It does not guarantee upstream cancellation, refund, or trigger a retry.

Instructions

取消排队或执行中的本地任务,停止本地等待;不保证上游停止执行或退款。不会触发重试。

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Adds substantive semantics beyond the annotations: the cancellation is local-only, upstream execution may continue, no refund is guaranteed, and no retry is triggered. That is exactly the caveat an agent needs before a non-idempotent cancel; it only omits what happens if the job is already finished or unknown.

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?

One compact statement with the action front-loaded, then three semicolon-separated caveats. No filler at all; every clause carries a distinct constraint.

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 one-parameter, no-output-schema tool, the behavioral caveats cover most of what matters. The remaining gap is the identity of job_id, which the description should have sourced given the schema's zero coverage.

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

Parameters2/5

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

The single required parameter job_id has 0% schema description coverage, so the schema supplies only 'string, minLength 1'. The description never mentions job_id, its format, or where to obtain it (e.g., from generate_gpt_image or get_image_job), leaving the parameter undocumented.

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?

Clear verb+resource: cancels a queued or running *local* image job, with the 'local' qualifier precisely scoping what is cancelled. It is distinguishable from siblings (get_image_job reads, generate_gpt_image creates) without naming them, but it makes no explicit sibling callout.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says what state a job must be in (queued or executing) to be a valid target, which implies when to call it. It does not state when not to use it, nor whether one should first verify status via get_image_job.

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