Skip to main content
Glama

Update unpublished pin

update_pin
DestructiveIdempotent

Edit a pin that has NOT been published yet: text, link, AI labels or board.

    Use to fix a typo, link or board before the pin publishes: queued,
    deferred and failed pins then publish with the new values. Published
    pins cannot be edited: Pinterest's API does not allow PinBridge to
    change a pin once it is live, so the call fails with
    pin_already_published. For a published pin, offer delete_pin plus a
    new create_pin (confirm first). To change the image use delete_pin then
    create_pin; for a failed pin on a bad board use retry_pin. Pass at
    least one field.

    Returns the updated pin. Fails with pin_already_published for a
    published pin, not_found for an unknown id, and conflict
    (pin_publishing) while the pin is mid-publish. A new board is
    preflighted like create_pin.
    

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": {
      "pin_id": "<pin_id>"
    },
    "name": "update_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoPin title, at most 100 characters.
pin_idYesUUID of the pin, from list_pins or create_pin.
alt_textNoNew accessibility text, <= 500 characters.
board_idNoPinterest board ID (numeric string), from list_boards.
link_urlNoDestination URL opened when the pin is clicked.
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. Replaces the current labels; [] removes them.

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. Replaces the current labels; [] removes them.",
      +  "title": "Ai Disclosures"
      +}
  2. Changed8 schema fields changed
    • addedInput schema / properties / alt_text / description
      Added value: +"New accessibility text, <= 500 characters."
    • addedInput schema / properties / board_id / description
      Added value: +"Pinterest board ID (numeric string), from list_boards."
    • 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 / link_url / description
      Added value: +"Destination URL opened when the pin is clicked."
    • addedInput schema / properties / pin_id / description
      Added value: +"UUID of the pin, from list_pins or create_pin."
    • changedInput schema / properties / title / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 100,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / title / description
      Added value: +"Pin title, at most 100 characters."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructive/idempotent/openWorld, and the description adds substantive behavior beyond them: queued, deferred and failed pins publish with new values; live pins hard-fail with pin_already_published due to API limits; a new board is preflighted like create_pin; and specific error codes (not_found, conflict/pin_publishing) are named. It also warns that ai_disclosures replaces existing labels and that [] removes them.

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 scope, then usage, then failure modes and return value; every sentence carries information. It is dense and slightly long for a single tool, but there is no filler and the ordering serves an agent well.

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?

For a 7-parameter mutation tool with no output schema, the definition covers purpose, preconditions, alternatives, error cases, return value ('Returns the updated pin'), and the at-least-one-field constraint. Nothing an agent needs to call it correctly appears to be missing.

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?

Schema coverage is 100%, so the schema already documents each field; the baseline would be 3. The description adds genuinely useful meaning beyond the schema by requiring 'Pass at least one field' (the schema marks only pin_id as required) and by noting that a new board_id triggers the same preflight as create_pin.

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 (edit) and resource (pin) with an explicit scope restriction: 'a pin that has NOT been published yet', then enumerates the editable fields (text, link, AI labels, board). This is clearly distinguishable from delete_pin, create_pin and retry_pin, which are named in the text.

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 ('fix a typo, link or board before the pin publishes'), when-not ('Published pins cannot be edited'), and named alternatives for the excluded cases: delete_pin plus create_pin for published pins or image changes, and retry_pin for a failed pin on a bad board. No inference is required to route correctly.

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