Skip to main content
Glama

submit_image_task

Start an asynchronous image-generation request and get a task ID; poll or cancel it with companion tools to retrieve results without blocking.

Instructions

Submit an image-generation task without waiting; returns task_id.

Poll with get_image_task, or cancel with cancel_image_task.

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": {
      "prompt": "<prompt>"
    },
    "name": "submit_image_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
sizeNo1024*1024
modelNowan2.2-t2i-flash
promptYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 disclose the essential behavioral trait — the call is non-blocking and yields a task_id rather than a finished image. It also maps the two lifecycle operations available afterward. It lacks detail on rate limits, failure modes, or what the returned task object contains beyond the id.

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?

Two short sentences, front-loaded with the verb, resource, async semantics and return value, followed by the follow-up routing. Nothing is wasted and the ordering prioritizes what the caller needs first.

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?

An output schema exists, so the return value needn't be explained beyond the task_id mention, and the asynchronous lifecycle is fully described. What remains missing is any semantics for the three optional generation parameters, which an agent must guess at.

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?

Schema description coverage is 0% across four parameters (prompt, n, size, model), and the description adds no meaning for any of them — notably not the expected size format ('1024*1024') or which models are valid. The only implicit signal is that prompt drives the generation. This is a clear compensation gap for a low-coverage schema.

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?

States a specific verb and resource plus the key distinguishing trait: 'Submit an image-generation task without waiting; returns task_id.' An agent instantly knows this is the asynchronous entry point. It does not explicitly contrast with the sibling generate_image, so the boundary with a possibly synchronous alternative is left implicit.

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 names the follow-up paths ('Poll with get_image_task, or cancel with cancel_image_task'), which is exactly the decision an agent faces after submission. It does, however, give no guidance on when to pick this tool over the synchronous generate_image sibling, which is the more consequential choice.

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