Skip to main content
Glama

Publish pin

create_pin

Publish a pin to Pinterest now, or preflight it with dry_run=true.

    Use for a pin that should go out immediately; for a future time use
    create_schedule, for many pins use create_pins_batch. Provide either
    image_url or asset_id (from upload_asset), not both. Run dry_run first
    and reuse resolved.idempotency_key on the real call.

    Returns the pin with id and status "queued" (poll get_pin), or with
    dry_run the validation result (valid, checks, resolved, headroom).
    Fails fast with board_not_found / board_not_owned / board_access_denied
    for an unpublishable board, quota_exceeded when the monthly quota is
    spent, and validation_error for bad fields.
    

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": {
      "account_id": "<account_id>",
      "board_id": "<board_id>",
      "title": "<title>"
    },
    "name": "create_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesPin title, at most 100 characters.
dry_runNotrue runs every API check (account, board, media, quota, rate headroom) and returns the resolved payload without publishing anything.
alt_textNoAccessibility text for the image, <= 500 characters.
asset_idNoUUID of an uploaded PinBridge asset, from upload_asset.
board_idYesPinterest board ID (numeric string), from list_boards.
link_urlNoDestination URL opened when the pin is clicked.
image_urlNoPublic URL of the image or video; Pinterest must be able to fetch it.
account_idYesUUID of a connected Pinterest account, from list_pinterest_accounts.
descriptionNoPin description, at most 800 characters.
ai_disclosuresNoAI labels Pinterest shows on the pin. AI_MODIFIED: the image or video was made or edited with AI. SYNTHETIC_PERFORMER: it shows a person generated by AI. Set them when the user made the media with AI or asks for the label.
dominant_colorNoHex color of the image, e.g. "#FF5733".
cover_image_urlNoPublic cover image URL; video pins only.
idempotency_keyNoUnique key so a retry never duplicates the pin. Generated when omitted, in which case a repeat call publishes again; reuse the key on retries.
cover_image_asset_idNoUploaded image asset UUID used as the video cover.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ai_disclosures
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "enum": [
      +          "AI_MODIFIED",
      +          "SYNTHETIC_PERFORMER"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "AI labels Pinterest shows on the pin. AI_MODIFIED: the image or video was made or edited with AI. SYNTHETIC_PERFORMER: it shows a person generated by AI. Set them when the user made the media with AI or asks for the label.",
      +  "title": "Ai Disclosures"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / related_terms
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Keywords that improve discoverability.",
      -  "title": "Related Terms"
      -}
  3. Changed16 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"UUID of a connected Pinterest account, from list_pinterest_accounts."
    • addedInput schema / properties / alt_text / description
      Added value: +"Accessibility text for the image, <= 500 characters."
    • addedInput schema / properties / asset_id / description
      Added value: +"UUID of an uploaded PinBridge asset, from upload_asset."
    • addedInput schema / properties / board_id / description
      Added value: +"Pinterest board ID (numeric string), from list_boards."
    • addedInput schema / properties / cover_image_asset_id / description
      Added value: +"Uploaded image asset UUID used as the video cover."
    • addedInput schema / properties / cover_image_url / description
      Added value: +"Public cover image URL; video pins only."
    • changedInput schema / properties / description / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 800,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / description / description
      Added value: +"Pin description, at most 800 characters."
    • addedInput schema / properties / dominant_color / description
      Added value: +"Hex color of the image, e.g. \"#FF5733\"."
    • addedInput schema / properties / dry_run / description
      Added value: +"true runs every API check (account, board, media, quota, rate headroom) and returns the resolved payload without publishing anything."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Unique key so a retry never duplicates the pin. Generated when omitted, in which case a repeat call publishes again; reuse the key on retries."
    • addedInput schema / properties / image_url / description
      Added value: +"Public URL of the image or video; Pinterest must be able to fetch it."
    • addedInput schema / properties / link_url / description
      Added value: +"Destination URL opened when the pin is clicked."
    • addedInput schema / properties / related_terms / description
      Added value: +"Keywords that improve discoverability."
    • addedInput schema / properties / title / description
      Added value: +"Pin title, at most 100 characters."
    • addedInput schema / properties / title / maxLength
      Added value: +100
  4. Changed1 schema field changed
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "title": "Dry Run",
      +  "type": "boolean"
      +}
  5. First observed

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already establish the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false). The description meaningfully extends this beyond annotations: it states the returned pin has status "queued" and should be polled via get_pin, lists specific failure codes (board_not_found, board_not_owned, board_access_denied, quota_exceeded, validation_error), and explains that a repeat call without a key republishes. It does not add much on the dry_run response shape beyond naming fields, but with annotations carrying the safety profile and a rich error/return description, this is better than adequate.

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 the primary action, then alternatives, then preconditions, then return/error behavior – a sensible ordering with no filler sentences. Minor deductions only: the leftover indentation from the source string and a fairly dense error-code enumeration that could be compressed.

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?

With 14 parameters and no output schema, the description carries the return-value and failure burden itself, and it does: success status plus polling target, dry-run result fields, and the concrete error codes for board, quota, and validation problems. It also covers the media source question that the schema leaves ambiguous, leaving nothing essential an agent needs before invoking a publish operation.

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 all 14 parameters including the idempotency_key retry caveat and dry_run semantics. The description's main added value is the mutual-exclusivity constraint on image_url/asset_id, which the optional schema does not encode. Everything else essentially restates schema content, so the baseline of 3 plus credit for the exclusivity rule 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?

"Publish a pin to Pinterest now, or preflight it with dry_run=true" gives a specific verb (publish) plus the dual mode (real vs preflight) in one line, and the second sentence names the siblings it is not (create_schedule, create_pins_batch). An agent can distinguish publish-now from schedule and batch without opening any schema.

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?

Explicit routing rules: immediate publishing vs create_schedule for a future time vs create_pins_batch for many pins. It also prescribes a workflow ("Run dry_run first and reuse resolved.idempotency_key on the real call") and a media precondition (image_url or asset_id, not both), so the when and how are both specified.

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