Skip to main content
Glama

Tailwind App

regenerate_pin_design

Use this to have Tailwind's AI generate a NEW design for an AI-designed (premium) Pin. Asynchronous and metered: it spends about 7 of the user's plan credits, takes a few minutes, and returns an id to poll with get_design_regeneration_status. Only works when get_pin_design lists "regenerate" in supportedOperations.

Because it spends the user's credits, confirm with the user before calling it, and say what it will cost. Calling it again after one finishes starts and charges ANOTHER regeneration, so poll before retrying.

The result does NOT replace the Pin's design on its own: a finished regeneration saves the new design on the Pin, and get_pin_design then reports workspaceStatus pending_apply with it as pendingMediaUrl, which you pass to select_pin_design_variation. Tell the user the new design is ready and let them choose, rather than applying it silently. pending_apply is the expected resting state, not a failure, and it stays that way until the user picks the design.

To REVISE the design the Pin already has, rather than replace it, pass selectedVariationUrl as well: the active variation's templateImageUrl from get_pin_design. Without it the generator has nothing to revise and produces an unrelated design for the same credits, which is rarely what someone asking to adjust their current design wants. If the user did not say which Pinterest account to use and list_accounts returns more than one, ask the user which account to use before calling this — do not choose for them.

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": {
      "accountId": "<accountId>",
      "postId": "<postId>"
    },
    "name": "regenerate_pin_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoText to overlay on the new design. This is not the Pin's title.
colorsNoColor palette for the new design, as hex values such as #0077CC. Anything that is not a hex color is rejected. Omit to keep the current colors.
postIdYesPin ID from list_posts
mediaUrlNoOne of this Pin's own images to build the new design around: a URL from get_pin_design's sourceImageCandidates (userPicked or ranked), or its originalPhotoUrl. Any other URL is rejected; for an image of the user's own, use uploadId.
uploadIdNoAn image of the user's own, staged with create_media_upload. Use instead of mediaUrl, not with it.
accountIdYesNumeric Tailwind account ID from list_accounts
premiumStyleNoVisual style for the new design. Defaults to the Pin's existing style.
selectedVariationUrlNoThe design to revise: the active variation's templateImageUrl from get_pin_design. Pass it whenever the user wants their current design adjusted. Omit it only to generate a fresh, unrelated design.

Output Schema

NameRequiredDescriptionDefault
regenerationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / colors
      Added value: +{
      +  "description": "Color palette for the new design, as hex values such as #0077CC. Anything that is not a hex color is rejected. Omit to keep the current colors.",
      +  "items": {
      +    "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
      +    "type": "string"
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
    • changedInput schema / properties / mediaUrl / description
      Previous value: -"Publicly reachable image to generate the new design from, such as a URL from get_pin_design's sourceImageCandidates"New value: +"One of this Pin's own images to build the new design around: a URL from get_pin_design's sourceImageCandidates (userPicked or ranked), or its originalPhotoUrl. Any other URL is rejected; for an image of the user's own, use uploadId."
    • changedInput schema / properties / uploadId / description
      Previous value: -"Image staged with create_media_upload. Use instead of mediaUrl, not with it."New value: +"An image of the user's own, staged with create_media_upload. Use instead of mediaUrl, not with it."
    • removedInput schema / properties / userFeedback
      Removed value: -{
      -  "description": "What to change, in the user's own words (e.g. 'make the text bigger and use warmer colors')",
      -  "maxLength": 2000,
      -  "type": "string"
      -}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is a non-readonly, non-idempotent, non-destructive open-world call. The description adds the material behavior: roughly 7 plan credits per call, multi-minute latency, an async id to poll, repeat calls incur another charge, and the result does not auto-apply — it rests in pending_apply as pendingMediaUrl until the user selects a variation via select_pin_design_variation.

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?

Front-loaded with purpose and cost before the conditional guidance, which suits a high-stakes async tool. It runs long and restates the pending_apply/selection loop in more than one place, but nearly every sentence carries operational consequence (charges, polling, non-application).

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?

It covers the async lifecycle, cost, precondition, retry hazard, and the handoff to select_pin_design_variation, and an output schema exists so return shape need not be explained. What it omits are practical failure modes an agent would face: what happens if the account is not premium, and what to do if the polling job fails or is cancelled via cancel_generation.

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 100%, so the baseline is 3; each parameter already carries its own description including the mediaUrl/uploadId exclusivity and the hex color pattern. The description adds mainly the consequence of omitting selectedVariationUrl (an unrelated design for the same credits) and the account-precondition, not new per-parameter syntax.

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?

States a specific verb and resource: have Tailwind's AI generate a NEW design for an AI-designed (premium) Pin. It distinguishes itself from related siblings by naming get_design_regeneration_status (polling), select_pin_design_variation (applying), and get_pin_design (state inspection), and it scopes eligibility to premium Pins with "regenerate" in supportedOperations.

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?

Gives explicit when-to-use (only if get_pin_design lists regenerate), when-not (do not re-call after completion because it charges again; do not silently apply), the alternative path (pass selectedVariationUrl to revise rather than replace), a confirmation requirement before spending credits, and a multi-account disambiguation rule. Nothing is left to inference.

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