Skip to main content
Glama

Tailwind App

preview_create_posts

Read-onlyIdempotent

Use this before create_posts whenever the batch schedules any Pin: it is the first of the two calls a bulk create with scheduled Pins takes, and it changes nothing and spends nothing. It takes the same accountId, posts and retryOfBatchId create_posts will be called with, and returns for every entry in order whether it would be created as a draft or scheduled, its Board and Board section, and its publish time, or "next open slot" for a useNextOpenSlot entry, whose slot is only chosen when create_posts runs; or why the entry would be refused. It also returns what the batch would cost: credits on accounts that pay per scheduled Pin, the free-trial allowance, no charge, or the plan's post limit, plus a previewToken when every entry would be created and the account can pay. Show the user the entries and the cost and ask before calling create_posts with that previewToken and the identical arguments, within 30 minutes; any change needs a new preview. 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>",
      "posts": "<posts>"
    },
    "name": "preview_create_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
postsYesOne entry per Pin, each with create_post's fields except intervalBoards and carouselItems. Results come back in this order.
accountIdYesNumeric Tailwind account ID returned by list_accounts
retryOfBatchIdNoWhen resending entries that failed, the batchId they failed in. Without it, resending the exact entries of a batch returns that batch instead of trying them again.

Output Schema

NameRequiredDescriptionDefault
costYes
resultsYesOne result per entry, in order
summaryYes
expiresAtNoWhen previewToken stops being accepted (ISO 8601)
previewTokenNoPassed to create_posts with the same arguments. Absent when any entry would be refused or the account cannot pay.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / posts / items / properties / minSendAt
      Added value: +{
      +  "description": "Earliest time (ISO 8601 with offset, e.g. 2027-01-01T00:00:00-05:00) the next open slot may be. Use with useNextOpenSlot when the user says nothing should publish before a date: the Pin takes the first open smart schedule slot on or after it, still honoring Pin Spacing, and earlier open slots stay free. Never pass a slot time you read from get_schedule here or in sendAt. Only valid with useNextOpenSlot; a time in the past is ignored.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, and the description adds real value beyond them: no spend, a 30-minute previewToken lifetime, invalidation on any argument change, and what the cost preview covers (per-Pin credits, free trial, plan limit). It does not spell out rate limits or what happens on a partially valid batch beyond the per-entry refusal reason, so it stops just short of 5.

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 operative instruction is front-loaded in the first clause, and every sentence carries information. However, the middle sentence chains many return-value cases with semicolons into one dense block, which makes it slower to scan than it needs to be, especially since an output schema already covers returns.

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 preview/confirmation gate with an output schema and safety annotations, the description covers the trigger condition, the human-in-the-loop step, token expiry and invalidation, cost semantics, and the account-disambiguation prerequisite. An agent has everything needed to call it correctly and to know what to do next.

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 accountId, posts and retryOfBatchId are already documented in detail, and the baseline is 3. The description adds only the constraint that create_posts must be invoked with the identical arguments, which is a useful but limited increment over the schema.

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/resource and its position in a workflow: 'the first of the two calls a bulk create with scheduled Pins takes,' and that it 'changes nothing and spends nothing.' This cleanly separates it from create_posts, which is named explicitly as the follow-up call.

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 ('before create_posts whenever the batch schedules any Pin'), the confirmation workflow (show entries and cost, ask the user, then call create_posts with the previewToken and identical arguments within 30 minutes), and an exclusion/edge case for ambiguous account selection with list_accounts. Nothing about selection 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