Skip to main content
Glama

Publish pins in bulk

create_pins_batch

Publish several pins in one call with a per-entry outcome.

    Use for bulk publishing (up to 100 pins) when the workspace has the
    bulk_imports feature; otherwise call create_pin per pin. Check
    get_billing_status for quota first: the batch needs quota for every
    entry. Supply an idempotency_key per entry if you may resend.

    Returns created_count, existing_count, failed_count, results (one
    {index, idempotency_key, status, pin, error} per entry) and headroom.
    Fails as a whole with payment_required without bulk_imports and
    quota_exceeded when quota is short; per-entry board or validation
    failures land in results instead.
    

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": {
      "pins": "<pins>"
    },
    "name": "create_pins_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinsYesUp to 100 pins, each with the same fields as create_pin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $defs / PinInput / 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 / $defs / PinInput / properties / related_terms
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Discovery keywords.",
      -  "title": "Related Terms"
      -}
  3. Changed1 schema field changed
    • addedInput schema / properties / pins / description
      Added value: +"Up to 100 pins, each with the same fields as create_pin."
  4. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations (openWorld, non-readonly, non-idempotent), the description discloses the feature gate, quota semantics ('quota for every entry'), resend safety via idempotency_key, and the whole-batch failure modes payment_required and quota_exceeded versus per-entry errors landing in results. This is exactly the extra behavioral context an agent needs before committing a bulk write.

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

Conciseness5/5

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

It leads with the action and outcome, then prerequisites, then return shape and failure semantics. Every sentence supplies actionable information, and there is no filler despite the tool's inherent complexity.

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 no output schema, the description supplies the return shape (created_count, existing_count, failed_count, results fields, headroom) and clearly partitions whole-batch versus per-entry failures. Combined with the feature and quota prerequisites, nothing material for a correct call is 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% and the PinInput fields are fully documented, so the schema already carries parameter detail. The description still adds batch-level meaning: the 100-cap, the requirement of quota per entry, and the per-entry idempotency_key resend caveat, though these partly repeat schema text on idempotency_key.

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 first sentence states a specific verb (publish) and resource (several pins) plus the batch scope ('in one call with a per-entry outcome'), and the second sentence explicitly contrasts it with create_pin for single pins. An agent can distinguish this from create_pin and retry_pin without opening the 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?

It gives explicit when-to-use conditions (bulk publishing up to 100 pins, workspace must have bulk_imports), names the fallback ('otherwise call create_pin per pin'), and a prerequisite step ('Check get_billing_status for quota first'). Both the positive case and the exclusion are covered.

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