Skip to main content
Glama

labnana-mcp

npm version npm downloads CI node License MCP Registry labnana-mcp MCP server

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

model

Provider

Resolutions

Best for

Nano Banana Pro

gemini-3-pro-image

Google

1K / 2K / 4K

In-image text, character consistency, high-fidelity output

Nano Banana 2

gemini-3.1-flash-image

Google

1K / 2K / 4K

Fast iteration and extreme aspect ratios

GPT-Image-2

gpt-image-2

OpenAI

1K / 2K / 4K

Spec-driven generation, layout control, illustration

Wan2.7 Image Pro

wan2.7-image-pro

Alibaba

1K / 2K / 4K¹

Photoreal and poster-style images

Wan2.7 Image

wan2.7-image

Alibaba

1K / 2K

Lower-cost everyday generation

Seedream 5.0 Pro

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

  1. Create an API key in the Labnana API Keys console.

  2. Make LABNANA_API_KEY available in the environment used by Claude Code.

  3. Add the server:

claude mcp add labnana -- npx -y @exoticknight/labnana-mcp

The package can also be started directly with:

npx -y @exoticknight/labnana-mcp

DeepSeek 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_KEY

DSH'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):

Install in Cursor Install in VS Code

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 build

Then configure the server with the generated dist/index.js:

claude mcp add labnana -- node <path-to-repo>/dist/index.js

On Windows, use an absolute path such as:

claude mcp add labnana -- node C:/path/to/labnana-mcp/dist/index.js

Related MCP server: Nano Banana MCP

Configuration

The server reads the following environment variable:

Variable

Required

Description

LABNANA_API_KEY

Yes

Labnana API key.

LABNANA_OUTPUT_DIR

No

Default directory for saved images. Falls back to labnana-images/ under the working directory.

The command-line options below are also supported:

Option

Description

--api-key <key>

Provide the API key for a local process.

--base-url <url>

Override the default API endpoint, https://api.labnana.com.

--output-dir <dir>

Default directory for saved images.

Environment variables are recommended because command-line arguments may be visible in the local process list.

Tools

Tool

Description

generate_image

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_credits

Estimate the credits required for a generation without generating an image.

get_subscription

Get subscription status, credit balances, and free usage information.

list_generation_tasks

List generation task history with pagination and optional status filtering.

get_generation_task

Get task details and public image URLs (useful after a generate_image timeout).

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, or seedream-5-0-pro. The provider is derived from the model automatically.

  • imageConfig.imageSize: 1K, 2K, or 4K. wan2.7-image and seedream-5-0-pro do not support 4K; wan2.7-image-pro also 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, or 8:1. GPT-Image-2 may omit this field and let the service choose; Wan2.7 supports only 1:1, 16:9, 9:16, 4:3, and 3: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 referenceImages and describe the target region and change in prompt using absolute coordinates from the top-left origin. OpenAPI has no separate mask or region parameter.

  • outputMode (generate_image only): hybrid (default, save originals and inline bounded previews), file (save originals and return metadata only), or inline (do not save to saveDir; 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_image only): target directory for hybrid/file mode, and the maximum wait for async (4K) generations.

Credit summary

Model

1K

2K

4K

gemini-3-pro-image

15

15

30

gemini-3.1-flash-image

10

10

20

gpt-image-2

4

6

10

wan2.7-image-pro

6

8

12 (text-to-image only)

wan2.7-image

4

6

Not supported

seedream-5-0-pro

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 LABNANA_API_KEY.

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 test

To 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.

License

Apache-2.0

Community

Available Tools

7 tools
estimate_credits预估图片生成所需积分A

根据 provider、模型、尺寸、宽高比等参数预估生成图片所需的积分。同步返回,不实际生成图片、不扣除积分。对应 POST /openapi/v1/images/generation/estimate-credits。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.1/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. 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.

Conciseness5/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.7/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. 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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters5/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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}。

ParametersJSON Schema
NameRequiredDescriptionDefault
taskIdYes

TDQS

A4/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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。

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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。

ParametersJSON Schema
NameRequiredDescriptionDefault
pageNo页码,默认 1
statusNo按状态过滤:pending / generating / success / fail
pageSizeNo每页数量,默认 20

TDQS

A3.8/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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 之后直接调用,避免手动多次轮询。

ParametersJSON Schema
NameRequiredDescriptionDefault
taskIdYes
pollIntervalMsNo轮询间隔毫秒,默认 5000
timeoutSecondsNo最长等待秒数,默认 300

TDQS

A4.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 7 tool updatesv1.0.0
    • First observedestimate_credits
    • First observedgenerate_image
    • First observedgenerate_image_async
    • First observedget_generation_task
    • First observedget_subscription
    • First observedlist_generation_tasks
    • First observedwait_for_generation_task

TDQS

A4.1/5.0

Scored across 7 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers