labnana-mcp
This server enables AI assistants to generate and edit images using Labnana's API. It supports:
Image Generation: Synchronous (
generate_image) and asynchronous (generate_image_async) creation from text prompts, image-to-image editing, and reference images. Models include Gemini, GPT-Image-2, Wan2.7, Seedream.Task Management: List tasks with pagination/filtering, get task details and public URLs, and wait for async tasks.
Credit Estimation: Estimate generation cost without spending credits.
Subscription Info: View subscription status, credit balances, free usage, and reset times.
Output Options: Base64 data URL for sync, public links for async tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@labnana-mcpGenerate an image of a cat astronaut floating in space."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
labnana-mcp
An MCP server for the Labnana OpenAPI. It enables Claude, Claude Code, and other MCP clients to generate and edit images with Labnana.
Current OpenAPI models (product names mapped to the model parameter):
Product name |
| Provider | Resolutions | Best for |
Nano Banana Pro |
| 1K / 2K / 4K | In-image text, character consistency, high-fidelity output | |
Nano Banana 2 |
| 1K / 2K / 4K | Fast iteration and extreme aspect ratios | |
GPT-Image-2 |
| OpenAI | 1K / 2K / 4K | Spec-driven generation, layout control, illustration |
Wan2.7 Image Pro |
| Alibaba | 1K / 2K / 4K¹ | Photoreal and poster-style images |
Wan2.7 Image |
| Alibaba | 1K / 2K | Lower-cost everyday generation |
Seedream 5.0 Pro |
| ByteDance | 1K / 2K | Coordinate-driven region editing and Chinese instructions |
¹ wan2.7-image-pro supports 4K only for text-to-image; generations with reference images are limited to 2K. Treat the Labnana OpenAPI guide as authoritative for model IDs.
GitHub · npm · MCP Registry · Glama · 中文文档
Installation
Requires Node.js 20.9 or later.
Claude Code
Create an API key in the Labnana API Keys console.
Make
LABNANA_API_KEYavailable in the environment used by Claude Code.Add the server:
claude mcp add labnana -- npx -y @exoticknight/labnana-mcpThe package can also be started directly with:
npx -y @exoticknight/labnana-mcpDeepSeek Harness (DSH)
Add the server through DSH's official MCP client plugin. Pin 2.1.1 when you want the version shown by initialize to identify this MCP Apps-capable build:
- id: mcp-labnana
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: labnana
transport: stdio
command: npx
args: ['-y', '@exoticknight/labnana-mcp@2.1.1']
env:
LABNANA_API_KEY: !!js process.env.LABNANA_API_KEYDSH's MCP bridge can project supported ImageContent into the calling vision model. Version 2.1 also publishes a standard MCP Apps single-file View for generate_image and get_generation_task. An MCP Apps-capable DSH Web host renders the preview inline; a stock generic DSH tool card may still show the JSON fallback even though the model received the image. This is a client presentation limitation, not a lost generation result.
For a local source checkout, use the same row with command: node, an absolute args path to dist/index.js, and cwd set to this repository. Current stock DSH builds bridge MCP tools but do not consume MCP resources in the generic tool card. Without an MCP Apps host, model vision still works and the card falls back to JSON.
Cursor and VS Code
One-click install (replace the placeholder API key after installing):
Claude Desktop and other MCP clients
Use an equivalent mcpServers configuration:
{
"mcpServers": {
"labnana": {
"command": "npx",
"args": ["-y", "@exoticknight/labnana-mcp"],
"env": {
"LABNANA_API_KEY": "lh_xxxxxxxxx"
}
}
}
}Local source checkout
npm install
npm run buildThen configure the server with the generated dist/index.js:
claude mcp add labnana -- node <path-to-repo>/dist/index.jsOn Windows, use an absolute path such as:
claude mcp add labnana -- node C:/path/to/labnana-mcp/dist/index.jsRelated MCP server: Nano Banana MCP
Configuration
The server reads the following environment variable:
Variable | Required | Description |
| Yes | Labnana API key. |
| No | Default directory for saved images. Falls back to |
The command-line options below are also supported:
Option | Description |
| Provide the API key for a local process. |
| Override the default API endpoint, |
| Default directory for saved images. |
Environment variables are recommended because command-line arguments may be visible in the local process list.
Tools
Tool | Description |
| One-stop text-to-image / image-to-image / editing. Saves the original and returns a bounded MCP image preview, structured metadata, and JSON fallback by default; 4K requests poll internally. |
| Estimate the credits required for a generation without generating an image. |
| Get subscription status, credit balances, and free usage information. |
| List generation task history with pagination and optional status filtering. |
| Get task details and public image URLs (useful after a |
Usage
Generate an image
{
"name": "generate_image",
"arguments": {
"model": "gemini-3-pro-image",
"prompt": "Change the background of the image to the grasslands of Inner Mongolia",
"referenceImages": [
{
"fileData": {
"fileUri": "https://cdn.labnana.com/xxx.png",
"mimeType": "image/png"
}
}
],
"imageConfig": {
"imageSize": "2K",
"aspectRatio": "16:9"
}
}
}The default is outputMode=hybrid: the full original is saved to disk while a bounded MCP image preview, structuredContent, and equivalent JSON text are returned together. This provides progressive compatibility across Codex, Claude Code, Claude Desktop, and other MCP clients. Use saveDir to choose the target directory.
All 1K, 2K, 4K, and get_generation_task results use the same envelope:
{
"schemaVersion": 1,
"status": "succeeded",
"taskId": "task-123",
"images": [
{
"index": 0,
"mimeType": "image/png",
"width": 4096,
"height": 4096,
"byteLength": 18442231,
"sha256": "...",
"url": "https://.../original.png",
"filePath": "C:\\...\\labnana.png",
"preview": { "included": true, "mimeType": "image/jpeg", "width": 1600, "height": 1600 }
}
]
}Image base64 appears only in standard MCP ImageContent, never duplicated into text or structured metadata. Full 4K originals are not inlined; previews have a maximum 1600-pixel edge and target a 2 MiB byte ceiling, while filePath/url locate the original.
Use referenceImages for image-to-image generation and editing. fileData.fileUri supports gs:// and https://; small images can be passed as base64 through inlineData.data.
4K requests automatically run as asynchronous tasks: the server creates the task, polls with rate-limit backoff, downloads and saves originals, and creates previews. If the wait exceeds timeoutSeconds (default 300), the result has status=pending and a taskId; this is not treated as generation failure. Fetch the final preview and original URL later with get_generation_task.
Credit estimation
{
"name": "estimate_credits",
"arguments": {
"prompt": "A Shiba Inu running through a snowy landscape",
"imageConfig": {
"imageSize": "4K"
}
}
}Parameters
model(default:gemini-3-pro-image):gemini-3-pro-image,gemini-3.1-flash-image,gpt-image-2,wan2.7-image-pro,wan2.7-image, orseedream-5-0-pro. The provider is derived from the model automatically.imageConfig.imageSize:1K,2K, or4K.wan2.7-imageandseedream-5-0-prodo not support 4K;wan2.7-image-proalso disallows 4K when reference images are present.imageConfig.aspectRatio:1:1,2:3,3:2,3:4,4:3,9:16,16:9,21:9,1:4,4:1,1:8, or8:1. GPT-Image-2 may omit this field and let the service choose; Wan2.7 supports only1:1,16:9,9:16,4:3, and3:4.referenceImages: OpenAPI allows up to 14 for Gemini, 4 for GPT-Image-2, 9 for Wan2.7, and 10 for Seedream. These are API limits, not the separate upload limits of the web generator.Seedream precise editing: put the source image in
referenceImagesand describe the target region and change inpromptusing absolute coordinates from the top-left origin. OpenAPI has no separatemaskorregionparameter.outputMode(generate_imageonly):hybrid(default, save originals and inline bounded previews),file(save originals and return metadata only), orinline(do not save tosaveDir; return a bounded preview, and persist the original to the default recovery directory only when the upstream response has no original URL).saveDir/timeoutSeconds(generate_imageonly): target directory forhybrid/filemode, and the maximum wait for async (4K) generations.
Credit summary
Model | 1K | 2K | 4K |
| 15 | 15 | 30 |
| 10 | 10 | 20 |
| 4 | 6 | 10 |
| 6 | 8 | 12 (text-to-image only) |
| 4 | 6 | Not supported |
| 6 | 15 | Not supported |
Errors
API errors are returned as { code, message } and exposed as MCP results with isError: true.
Code | Meaning | Recommendation |
21007 | Invalid API key | Check |
26004 | Insufficient credits | Check the subscription or upgrade the plan. |
29003 | Invalid parameters | Check required fields and model-specific limits. |
29998 | Too many requests | Retry with a 20–30 second backoff. |
Development
npm install
npm run typecheck
npm testTo inspect the real single-file MCP App without calling Labnana or spending credits, run npm run test:ui and open http://127.0.0.1:4173/test/mcp-app-host.html. The local host sends a generated 640×360 PNG fixture through the official AppBridge so the image, status, and metadata can be checked visually.
Links
Technical support: support@marswave.ai
License
Community
Available Tools
7 toolsestimate_credits预估图片生成所需积分A
根据 provider、模型、尺寸、宽高比等参数预估生成图片所需的积分。同步返回,不实际生成图片、不扣除积分。对应 POST /openapi/v1/images/generation/estimate-credits。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It discloses non-mutating behavior (no image generation, no credit deduction) and synchronous execution, along with the API endpoint. However, it omits error behavior, return format, and authentication requirements.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact, consisting of two sentences. It front-loads the purpose, then states side effects and the corresponding endpoint, with no redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers core behavior and side effects, but the mismatch between the empty schema and the implied parameters creates ambiguity. It lacks details on return structure, error handling, and parameter passing, making it less complete for actual invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema is empty, so the description is the only source of parameter information. It lists provider, model, size, and aspect ratio, but does not specify types, requiredness, or how these parameters are passed (e.g., in body or query). This partial information is helpful but incomplete.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool estimates credits required for image generation using parameters like provider, model, size, and aspect ratio. It explicitly differentiates itself from sibling tools like generate_image by noting it does not actually generate images or deduct credits.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implicitly positions the tool as a pre-generation cost estimator by stating it returns synchronously and does not generate or deduct credits. It does not explicitly name alternatives or provide exclusion criteria, but the context makes the intended usage clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_image生成图片(同步)A
同步生成图片,直接返回 base64 图片数据与生成元数据。支持 Gemini 系列、GPT-Image-2、Wan2.7、Seedream 5.0 Pro。可传参考图片(fileUri 或 base64 inlineData)做图生图、改图。对应 POST /openapi/v1/images/generation。注意:同步接口返回体积大,4K 图片建议改用 generate_image_async。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It discloses key behaviors: synchronous execution, direct return of base64 data and metadata, support for multiple models, and a warning about high return volume. It does not cover errors or authentication, but the provided details are substantial and useful.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and well-structured: a single sentence covering core functionality, followed by a short warning about async alternatives. Every clause adds value, and the critical distinction (synchronous vs async) is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a complex tool with no output schema, the description covers the return value (base64 data and metadata), supported models, reference image support, and the API endpoint. It misses explicit parameter names for model selection and error handling, but overall it is fairly complete for invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters, so the description is the only source of parameter info. It explicitly mentions 'fileUri 或 base64 inlineData' for reference images and lists supported models, adding meaning beyond the empty schema. Given the 0-param baseline of 4, this extra detail qualifies for a 5.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states '同步生成图片,直接返回 base64 图片数据与生成元数据' clearly defining the tool's function. It differentiates from sibling 'generate_image_async' by emphasizing the synchronous nature and explicitly warns about large payloads, naming the alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance: use this for synchronous generation and switch to generate_image_async for 4K images due to large return volume. It also mentions support for reference images, indicating use cases like image-to-image and editing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_image_async生成图片(异步任务)A
创建图片生成任务并立即返回 taskId,不阻塞等待。任务成功后图片为公开链接,可用 get_generation_task 查询详情,或用 wait_for_generation_task 等待完成。适合大图、批量生成。对应 POST /openapi/v1/images/generation/async。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses non-blocking behavior, immediate taskId return, and that successful tasks yield public links. However, it does not mention failure scenarios, credit consumption, or rate limits, leaving significant behavioral gaps for a creation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded. The first sentence explains the core async behavior, the second adds follow-up actions, and the final sentence gives use cases and API endpoint. Every sentence earns its place without fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the async complexity and lack of annotations/output schema, the description covers the essential lifecycle: create task, get taskId, query/wait, and result as public link. It lacks details on failure handling or credit implications, but these may be covered by sibling tools like get_generation_task. Overall, it is reasonably complete for an entry-point tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters, so the baseline is 4. The description does not need to explain parameter syntax and appropriately focuses on workflow rather than parameter details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool creates an image generation task and immediately returns a taskId without blocking. This verb+resource description distinguishes it from sibling generate_image (likely synchronous) by highlighting the asynchronous nature.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear usage context: '适合大图、批量生成' indicates when to use async mode. It also directs to get_generation_task and wait_for_generation_task for follow-up, but does not explicitly mention when to prefer the synchronous generate_image sibling.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_generation_task获取图片生成任务详情A
查询图片生成任务状态。任务成功后 images 字段为公开图片链接数组,可直接下载。对应 GET /openapi/v1/images/generation/tasks/{taskId}。
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral burden. It discloses the key success behavior (images field becomes an array of public links) and provides the API endpoint. However, it does not mention error handling, failure states, or authentication requirements, leaving gaps in behavioral expectations for a plain status query.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with purpose, and includes an API endpoint that provides additional mapping without redundancy. Every word earns its place; there is no filler or tautology.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter task with no output schema or annotations, the description is fairly complete: it explains the purpose, the success output (images array of public links), and the endpoint. It lacks error behavior and response details beyond success, but given the tool's simplicity and the sibling context, the core information is sufficiently covered.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% for the single parameter taskId. The description indirectly explains it through the endpoint path 'GET /openapi/v1/images/generation/tasks/{taskId}', implying taskId is the task identifier. However, it does not explicitly state the parameter's origin, required format, or how to obtain it, so compensation is partial.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's action: '查询图片生成任务状态' (query image generation task status). It specifies the resource (image generation task) and the scope (status check), and it distinguishes itself from siblings by mapping directly to the GET endpoint for a single task, unlike list_generation_tasks or generate_image.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context that this tool is for checking task status, and reveals the success condition (images field contains downloadable links). However, it does not explicitly state when not to use this tool or mention alternatives such as wait_for_generation_task for polling, so it lacks exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_subscription获取订阅信息与积分余额A
获取当前 API Key 账户的订阅状态、可用积分(月度/永久/限时)、免费额度(freeUsages)与重置时间。对应 GET /openapi/v1/user/subscription。
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the transparency burden. It signals a read-only operation via '获取' and the explicit 'GET' endpoint, and it discloses the output scope (account subscription, credits, freeUsages, reset time). However, it does not explicitly state side-effect-free behavior, rate limits, or whether the call consumes credits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that packs all essential information: resource, returned fields, account scope, and endpoint. No wasted words or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parameterless read-only tool with no output schema, the description is largely complete: it names the endpoint and enumerates the key response components. It could be more complete by describing the shape/nesting of freeUsages or reset time, but given the tool's simplicity, this is a minor gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so the schema is trivially 100% covered. Per baseline guidance, 0 params receives a 4. The description adds value by explaining what the response contains, which is helpful even though there is nothing to configure for invocation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('获取') with a clear resource ('订阅信息与积分余额') and includes the exact fields returned: subscription status, available credits (monthly/permanent/limited-time), freeUsages, and reset time. It also names the corresponding GET endpoint, making the tool's purpose unmistakable and distinct from the image generation siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies the tool is used to check current account subscription and credit balance, but it does not explicitly state when to use it versus alternatives like estimate_credits, nor does it mention any exclusions or prerequisites. This leaves usage context implicit rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_generation_tasks获取图片生成任务列表A
按创建时间倒序返回当前 API Key 用户的图片生成任务列表。对应 GET /openapi/v1/images/generation/tasks。
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 页码,默认 1 | |
| status | No | 按状态过滤:pending / generating / success / fail | |
| pageSize | No | 每页数量,默认 20 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the behavioral transparency burden. It adds useful context about ordering (reverse chronological) and scope (current API Key user), but it omits pagination behavior, response format, and any rate-limit or authentication considerations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence that clearly states the action, resource, and ordering. It includes the endpoint reference without unnecessary fluff, making it highly concise and effective.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple list tool with all optional parameters and no output schema, the description provides the essential context: scope, ordering, and endpoint. However, it could be slightly more complete by mentioning what fields are included in each returned task, though this is not critical.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already provides descriptions for all three parameters (page, status, pageSize) including defaults, minimums/maximums, and an enum. The description adds no additional parameter-level meaning, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb '返回' (return) and resource '当前 API Key 用户的图片生成任务列表', and it specifies the ordering as '按创建时间倒序' (reverse chronological). This clearly distinguishes it from the sibling tool get_generation_task, which retrieves a single task.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use or alternative guidance is provided, but the scope ('current API Key user') and endpoint mapping make the listing purpose clear. The distinction from the singular get_generation_task is implied by the plural 'tasks' but not explicitly stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
wait_for_generation_task等待图片生成任务完成A
轮询等待异步生成任务完成(success / fail),返回公开图片链接或失败原因。适合在 generate_image_async 之后直接调用,避免手动多次轮询。
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| pollIntervalMs | No | 轮询间隔毫秒,默认 5000 | |
| timeoutSeconds | No | 最长等待秒数,默认 300 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden. It discloses that the tool polls and waits for completion, returns a link or failure reason, and is a convenience wrapper to avoid manual polling. It does not explicitly describe timeout behavior, but the schema's timeoutSeconds parameter and the return of failure reasons provide reasonable coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single well-structured sentence that front-loads the core purpose, then adds the usage context. Every clause earns its place with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (3 params, no output schema), the description provides the essential return type (public link or failure reason), the polling nature, and the intended call pattern after generate_image_async. It does not detail edge cases like timeout or invalid task IDs, but those are partially inferable from the schema and sibling context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 67% (pollIntervalMs and timeoutSeconds have descriptions; taskId is self-explanatory). The description adds no parameter-specific information beyond suggesting the tool avoids manual polling. This is adequate but not exceptional, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'poll wait' (轮询等待) and the resource 'async generation task' (异步生成任务), and specifies it returns public image link or failure reason. It distinguishes itself from siblings like get_generation_task by explicitly mentioning it is meant to be called after generate_image_async and avoids manual polling.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives explicit context: '适合在 generate_image_async 之后直接调用,避免手动多次轮询' (suitable for direct call after generate_image_async, avoiding manual polling). It clearly states when to use it and the benefit, but does not explicitly name alternatives or exclusion conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
7 tool updates
v1.0.0- First observed
estimate_credits - First observed
generate_image - First observed
generate_image_async - First observed
get_generation_task - First observed
get_subscription - First observed
list_generation_tasks - First observed
wait_for_generation_task
TDQS
Scored across 7 tools
Each tool has a clear, distinct purpose: subscription info, credit estimation, sync generation, async generation initiation, task listing, task status query, and task waiting. Even generate_image vs generate_image_async are cleanly separated by sync/async semantics.
Tool names mostly follow a consistent verb_noun (or verb_noun_modifier) pattern in snake_case, e.g., get_subscription, generate_image, list_generation_tasks. The only minor deviation is wait_for_generation_task which uses a phrasal verb, but it is still readable and predictable.
Seven tools is well-scoped for an image generation API with account/credit management. The set covers both synchronous and asynchronous flows, estimation, and task tracking without unnecessary bloat.
The core image generation workflow is complete: estimate credits, generate (sync/async), list, query, and wait for tasks. Minor gaps include lack of a cancel-task operation and no explicit tool to retrieve generated images directly, but these are workarounds via task links.
Maintenance
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Midjourney AI image generation and editing
MCP server for Qwen Image 3 AI image generation
MCP server for Flux AI image generation
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides image generation using Google's Nano Banana Gemini models, with additional tools for background removal, upscaling, and format conversion via deterministic post-processing.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language.8 npm1MIT
- AlicenseAqualityCmaintenanceMCP server for AI image generation and editing using Google Gemini image models.7528 npmMIT
- AlicenseAqualityCmaintenanceMCP server for generating and editing images using Google Gemini API. Supports text-to-image generation, image editing, and image description.35 npmMIT