Skip to main content
Glama

Build Product Suite Prompts

build_product_suite_prompts

Compiles and validates versioned image-generation prompt sets for an e-commerce product’s main images, detail screens, and SKUs, saving the suite without generating images.

Instructions

免费构造同一商品主图+详情+SKU整套绘图提示词,Pydantic校验后保存新版本;不收费出图。

先读nanobanana://templates/product-suite和styles/main/detail/sku,或product_suite_brief。 Agent先观察实图、分析需求/对标、策划文案和构图。suite.style是全套唯一风格来源: 颜色角色、画面/光线、文案语气/术语、字体家族/字重、排版层级比例;brief.style不参与整套编译。 frames选择模板并填写本图内容,不接受逐图style覆盖。1–8张主图、8–15屏详情、每个SKU一图。 主图一图一信息;详情opening→solution→产品/证据→closing;SKU需真实独立实图/相同属性字段。 画幅按suite.canvases分类型设置;未设分辨率继承brief.resolution;仅使用list_models中三类模型。 返回design/统一style_digest/逐图task.prompt及执行参数,缺需求返回needs_input和questions,无提示词。 修改传当前expected_revision和完整brief,旧确认失效;不要用普通edits修改整套。 展示并研讨→confirm_ecommerce_design锁定版本→明确收费授权后submit_ecommerce_design。 实际提交从保存的类型化方案重新校验编译,与返回提示词相同;不回填或替换task.prompt。

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": {
      "design_id": "<design_id>",
      "brief": "<brief>"
    },
    "name": "build_product_suite_prompts"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYes
design_idYes
expected_revisionNo

Output Schema

NameRequiredDescriptionDefault
designYes
promptsYes
style_digestYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish it is a write, non-destructive, open-world tool, but the description adds substantial behavior: it validates with Pydantic, saves a new version, does not charge for image generation, returns no prompts when needs_input is returned, invalidates old confirmations on modification, and revalidates/recompiles on actual submission. These are exactly the operational traits an agent needs beyond the annotations.

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

Conciseness4/5

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

The description is dense and long, but the complexity of the schema and workflow justifies most of its length. The purpose and key constraint ('不收费出图') are front-loaded, and the workflow is ordered clearly; the only cost is a run-on density that could be separated into clearer blocks.

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?

Given the high-complexity input schema, output schema, and workflow with confirmation and submission gates, the description is complete enough to call the tool correctly. It covers resource prerequisites, style precedence, frame constraints, return behavior on missing input, modification rules, and the downstream confirm/submit flow; output schema handles return shape.

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?

Top-level schema description coverage is 0%, so the description must carry parameter meaning. It clarifies the critical semantics: suite.style is the sole style source, brief.style does not participate, frames cannot override style per image, main counts are 1–8, details 8–15, each SKU is one image, canvases set resolution by type, and expected_revision is required when modifying. It still leaves many nested brief fields (design_id, facts, variants, benchmarks) to the schema, but the core configuration semantics are well covered.

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 a specific verb and resource: building a complete product-suite prompt set for main images, detail pages, and SKUs, with Pydantic validation and version saving. It also distinguishes the operation from paid image generation with '不收费出图' and from ordinary edits with '不要用普通edits修改整套'.

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?

It gives strong procedural guidance: read the template/style resources or product_suite_brief first, observe real images, plan copy and composition, then show/discuss, confirm with confirm_ecommerce_design, and submit only after explicit paid authorization. It also states how to modify via expected_revision and full brief. It does not explicitly contrast this tool with all relevant sibling planning tools, so it falls short of a full 5.

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