Skip to main content
Glama

Tailwind App

get_pin_spacing_rule

Read-onlyIdempotent

Use this when the user asks how far apart Pins to a destination URL will be spaced, why Pins to one URL land days apart, or whether Pin Spacing will get in the way of a planned cadence: returns the Pin Spacing rule Tailwind applies to Pins linking to that url, either the account-wide DEFAULT rule or a URL-specific CUSTOM rule, with its spacing in days. It is resolved the same way useNextOpenSlot resolves it, so a linked URL reports its base URL's rule and linkedToUrl names that base. A null rule means Pin Spacing does not constrain the URL. Pass boardId (from list_boards) to also get boardRule, the Board's rule: the Pin must be at least rule apart from Pins with the same URL and at least boardRule apart from Pins on the same Board. useNextOpenSlot on create_post and schedule_post honors this rule. An explicit sendAt sets only a Pin's initial time and is not an exemption: a later Pin Spacing respace or schedule shuffle can still move that Pin, and no tool can lock it in place. Read-only: to change the rule, use set_pin_spacing_rule. For every rule on the account at once, use list_pin_spacing_rules. 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>",
      "url": "<url>"
    },
    "name": "get_pin_spacing_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe Pin destination URL to look up, the same value create_post takes as url
boardIdNoOptional numeric Board ID from list_boards; returns that Board's rule as boardRule
accountIdYesNumeric Tailwind account ID returned by list_accounts

Output Schema

NameRequiredDescriptionDefault
urlYesThe URL that was looked up, as sent
ruleYesThe applied rule; null when Pin Spacing does not constrain the URL
boardIdYesThe Board that was looked up, as sent; null when no boardId was sent
boardRuleYesThe Board rule applied alongside rule; null when no boardId was sent, the Board has no rule, or Board spacing is not enabled for the account
linkedToUrlYesThe base URL whose rule url follows when url is a linked URL; null otherwise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / boardId
      Added value: +{
      +  "description": "Optional numeric Board ID from list_boards; returns that Board's rule as boardRule",
      +  "type": "string"
      +}
    • addedOutput schema / properties / boardId
      Added value: +{
      +  "description": "The Board that was looked up, as sent; null when no boardId was sent",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / boardRule
      Added value: +{
      +  "description": "The Board rule applied alongside rule; null when no boardId was sent, the Board has no rule, or Board spacing is not enabled for the account",
      +  "properties": {
      +    "boardId": {
      +      "description": "CUSTOM only: the Board the rule is set for",
      +      "type": "string"
      +    },
      +    "ruleType": {
      +      "description": "DEFAULT is the account-wide Board rule; CUSTOM is set for one Board",
      +      "enum": [
      +        "DEFAULT",
      +        "CUSTOM"
      +      ],
      +      "type": "string"
      +    },
      +    "spacing": {
      +      "description": "Minimum days between Pins on the Board",
      +      "type": "number"
      +    },
      +    "spacingUnits": {
      +      "enum": [
      +        "DAYS"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ruleType",
      +    "spacing",
      +    "spacingUnits"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "url",
      -  "linkedToUrl",
      -  "rule"
      -]New value: +[
      +  "url",
      +  "linkedToUrl",
      +  "rule",
      +  "boardId",
      +  "boardRule"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/no-destructive, but the description goes well beyond them: null means spacing does not constrain the URL, linked URLs report their base URL's rule via linkedToUrl, and results match useNextOpenSlot resolution. It also explains that boardRule adds a second constraint 'at least boardRule apart from Pins on the same Board' and that an explicit sendAt is not an exemption from respacing — genuinely useful behavior not available in structured fields.

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 trigger condition and a routing pointer, then progressively adds resolution semantics and the account-ambiguity rule. It is one dense run-on paragraph with several nested clauses, so it is slightly harder to scan than it needs to be, but each clause carries information.

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 read-only lookup with an output schema, this covers return shape (rule, spacing in days, linkedToUrl, boardRule), null behavior, resolution model, and a cross-tool caveat about sendAt and respacing. Nothing an agent needs to call or interpret this correctly is missing, and it correctly defers detail to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds real semantics: url is the same value create_post takes, boardId comes from list_boards and specifically causes boardRule to be returned with the joint spacing constraint defined. That meaning is not in the schema descriptions.

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 and resource (returns the Pin Spacing rule for a destination URL) and enumerates the rule kinds it can return (account-wide DEFAULT vs URL-specific CUSTOM) plus the day spacing. It is clearly separable from set_pin_spacing_rule and list_pin_spacing_rules, which it names.

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?

Opens with concrete trigger questions ('how far apart Pins... will be spaced', 'why Pins land days apart') and then gives explicit alternatives: set_pin_spacing_rule to change, list_pin_spacing_rules for every rule at once. It also adds a real usage precondition: if the account is ambiguous after list_accounts, ask the user rather than choosing.

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