set_pin_spacing_rule
Use this when the user wants Pins to the same destination URL kept further apart (or closer together), or before scheduling many Pins to one URL with useNextOpenSlot when the account has no rule for it: creates or replaces a Pin Spacing rule, the minimum number of days Tailwind keeps between scheduled Pins sharing a URL. Free, as in the dashboard.
ruleType DEFAULT sets the account-wide rule, which applies to EVERY URL on the account that has no rule of its own; say so to the user and confirm before changing it. ruleType CUSTOM sets the rule for one url and needs url; it overrides the default for that URL. URLs match regardless of http/https and trailing slashes. A linked URL follows its base URL's rule, so a CUSTOM write through a linked URL changes the base URL's rule, which also governs every URL linked to it; linkedToUrl names that base.
Only Pins scheduled after this call are spaced by the new rule. This call does not move Pins already on the schedule; respacing them happens in the Tailwind dashboard, and a later respace or shuffle there applies the new rule to them. Call get_pin_spacing_rule first when you need to know what a URL follows today. 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>",
"ruleType": "<ruleType>",
"spacing": "<spacing>"
},
"name": "set_pin_spacing_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | CUSTOM only, and required for it: the Pin destination URL, the same value create_post takes as url. Omit for DEFAULT. | |
| spacing | Yes | Whole days between Pins to the URL, 1 to 365. Tailwind recommends at least 7. Ask the user rather than guessing. | |
| ruleType | Yes | DEFAULT is the account-wide rule for every URL without its own rule; CUSTOM is the rule for one url | |
| accountId | Yes | Numeric Tailwind account ID returned by list_accounts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| linkedToUrl | Yes | CUSTOM only: the base URL whose rule was changed when url is a linked URL; null otherwise | |
| previousSpacing | Yes | The spacing this rule replaced; null when there was no rule of this type before |