Skip to main content
Glama

DesignUpgrade

AI 设计升级:对目标产品/包材图做设计升级或包装升级。 参考图可选;有参考图时不能与目标图相同。 本工具提交后立即返回任务信息,不阻塞等待生成;请按返回的轮询参数调用 GetTask 取结果。

【上传图片】本工具不接收 base64,只接收文件 id:

  1. 先调用 CreateUploadUrl 拿到 fileId 与 uploadUrl;

  2. uploaded=false 时把文件字节 PUT 到 uploadUrl,必须让命令读取文件内容(curl 用 --data-binary @文件路径,漏掉 @ 会把路径字符串当内容上传且仍返回 200),上传后核对字节数与本地文件大小一致;

  3. 把 fileId 填入对应图片字段。 仅支持 JPG / PNG / WebP,单张不超过 30MB。

【字段】

  • imageUrl:目标图文件 id(由 CreateUploadUrl 返回),必填。

  • referenceImageUrl:参考图文件 id(由 CreateUploadUrl 返回),可选;不能与目标图相同。

  • prompt:画面要求,必填;无额外要求时可传空字符串。

  • ratio:输出比例,必填。展示下面这些选项让用户勾选: · adaptive(自动) · 1:1 · 3:2 · 2:3 · 4:3 · 3:4 · 5:4 · 4:5 · 16:9 · 9:16 · 21:9

  • resolution:输出分辨率,必填。展示下面这些选项让用户勾选: · 1K · 2K · 4K

【异步与轮询】成功提交后返回 JSON:conversationId、taskId、initialSleepSeconds、intervalSeconds。 conversationId 是本段对话的会话 id。同一段用户对话中,后续调用本服务的 Agent 类工具必须原样传入该 conversationId;还没有就省略,不要编造。传入的 id 无法匹配当前用户的会话时,会新建会话并返回新的 conversationId。 先按 initialSleepSeconds 等待,再按 intervalSeconds 间隔调用 GetTask(taskId),直到 status 为 completed(取 result)或 failed。 图片 URL 有时效性,请立即下载到本地保存后再使用或展示,不要把链接原样转给用户当作最终结果。 GetTask 完成后的 message 按用户当前对话语言翻译,不要强行中文;Markdown 链接必须完整保留,链接地址不要改。

【回复要求】工具返回的内容就是给用户的最终文案,按用户当前对话语言转达,不要强行中文:可以翻译措辞,不要改写事实、精简、扩写或自行追加建议、总结或客套话。 返回体是 JSON 时,转达其中面向用户的文案字段(如 message);是纯文本时转达整段。 文案中的 Markdown 链接(例如 莱诺鸟)必须完整保留,链接地址以工具返回的为准;链接文字随回复语言调整:中文用「莱诺鸟」,非中文一律用 rhinobird,禁止在非中文回复中保留「莱诺鸟」;严禁降级成「莱诺鸟(lainuoniao.com)」「lainuoniao.com」这类纯文本,否则用户无法点击跳转。 任务编号、积分数字、链接地址保持原样。成功、积分不足、生成失败、超时等所有场景都按此规则处理。 媒体与图片地址是服务端签发的短链(形如 …/api/v1/explorer/media/s/8 位短码),必须整段原样使用:不要拼接、补全、截断或改写,也不要自己拼 OSS / CDN 地址。

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": {
      "imageUrl": "<imageUrl>",
      "prompt": "<prompt>",
      "ratio": "<ratio>",
      "resolution": "<resolution>"
    },
    "name": "DesignUpgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratioYes输出图片比例,必填。展示这些选项让用户勾选;adaptive 表示自动。
promptYes画面要求,必填;不含图片数量和比例。无额外要求时传空字符串。
imageUrlYes目标图文件 id,由 CreateUploadUrl 返回(32 位 md5)。仅支持 JPG / PNG / WebP,单张不超过 30MB。不接收 base64。
resolutionYes输出分辨率,必填。展示这些选项让用户勾选。
conversationIdNo会话 id,可选。同一段用户对话里,后续调用本服务的 Agent 类工具必须原样传入上一次返回的 conversationId。还没有就省略,不要编造。
referenceImageUrlNo参考图文件 id,由 CreateUploadUrl 返回(32 位 md5)。仅支持 JPG / PNG / WebP,单张不超过 30MB。不接收 base64。可选。不能与目标图相同。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=false, idempotentHint=false, destructiveHint=false, so the mutation profile is known. The description adds substantial behavior beyond them: submission returns immediately without blocking, response keys (conversationId, taskId, initialSleepSeconds, intervalSeconds), conversationId propagation and mismatch behavior (create a new session), and media URL expiry requiring immediate download. That is rich operational context; a slight deduction only because some of the length is response-formatting policy rather than tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is good, with bracketed sections for uploads, fields, async polling, and reply rules, and the purpose is front-loaded. However, a large fraction of the text is translation and Markdown-link policy (including the 莱诺鸟 vs rhinobird rule) plus a full re-listing of enum values already in the schema, which bloats the definition well beyond what an agent needs to select and invoke the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry the return contract, and it does: the JSON keys returned on submission, the polling parameters, the terminal statuses and the result field, plus URL expiry and download-before-display guidance. Combined with the upload prerequisites, an agent has everything needed to complete the call end to end.

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 100%, so the schema already documents imageUrl, referenceImageUrl, prompt, ratio, resolution, and conversationId, including the file-id requirement and the same-image constraint. The description restates these fields and enumerations rather than adding new meaning, so it lands at the baseline; its only extra is narrating the CreateUploadUrl-to-fileId pipeline, which the schema already hints at.

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?

The opening line states a specific verb and resource: design/packaging upgrade of a target product or packaging image, with an optional reference image. It is clear what the tool does, but it never names how it differs from plausible siblings such as DesignSameStyle, PackageDesign, or ReferenceDesign, which share vocabulary and could confuse selection.

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?

Usage context is strong: the tool is for upgrading an existing target image, the reference image is optional and must differ from the target, and the full async flow (submit, sleep initialSleepSeconds, poll GetTask at intervalSeconds until completed/failed) is spelled out. What is missing is any explicit when-not-to-use or comparison to the sibling design tools, so an agent must infer selection from the tool name and this paragraph alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources