Skip to main content
Glama

Check a post before publishing

validate_post
Read-onlyIdempotent

Check a post before scheduling or publishing: confirm per-channel caption limits, media validity, and scheduling rules, returning PASSES or exact refusals.

Instructions

Check a post BEFORE it is scheduled or published, and store nothing: (1) each caption’s length per channel against the limit Hermoso and the platform refuse on, plus X’s own weighted count (a link counts 23, an emoji 2) and whether it fits X’s 280 without Premium; (2) every media URL fetched the way a post fetches it, its bytes identified (a real image or video, never trusting the file name), measured (size, width, height, aspect, duration) and flagged when it cannot be decoded; (3) the whole schedule_post check run at at (default an hour from now): channels connected, which account, per-channel rules, photo shapes, the posting allowance. The answer is PASSES or the exact refusals schedule_post would give. Use it before a bulk schedule or when a user asks "will this work on Instagram?". Same fields as schedule_post. Free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNothe time to check it for (default an hour from now)
linkNo
brandNoWHICH PROFILE the post lives in, for THIS CALL ONLY: an id or exact name from list_brands, needed when it was published in a profile this connection is not pinned to. A name that matches no profile, or two, is REFUSED and nothing is done.
titleNo
messageNo
accountsNo
captionsNoper-channel captions
channelsNothe channels to check against; omit to check only the media
imageUrlNo
timezoneNo
useQueueNo
videoUrlNo
imageUrlsNo
channelOptionsNorare per-channel extras: threadsChain[] / blueskyThread[] follow-ups threaded under it; linkedinPoll {question, options[], duration ONE_DAY|THREE_DAYS|SEVEN_DAYS|FOURTEEN_DAYS} a poll as the post; linkedinReshareOf repost this (link or urn); ytPlaylistId add to playlist; protectContent Telegram no forwarding/saving; telegramDocument file URL sent as the post; slackUsername / slackIconUrl / slackIconEmoji (:rocket:) the Slack app posts as that name and picture; sensitiveMedia [adult_content|graphic_violence|other] X media warning; geoRestriction {countries[] | excludeCountries[]} X media country limit (two-letter codes); textBackgroundPresetId Facebook text-only post on a coloured background (numeric preset id); tiktokLocationId + tiktokLocationName (search_tiktok_locations), tiktokMusicSoundId (songClipId from tiktok_ads_trending sounds), tiktokMusicVolume / tiktokOriginalSoundVolume 0-100, tiktokAdsOnly TikTok video as an ads-only post

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.688

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description usefully adds that nothing is stored, that media URLs are actually fetched, that the `at` field defaults to an hour from now, that the tool is free, and that the result is PASSES or the exact refusals schedule_post would return — real context beyond the annotations, though the fetch behavior is only implied by openWorldHint.

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-loads the core promise ('Check a post BEFORE...') then organizes detail into a numbered list of the three checks. Dense but every clause maps to a distinct behavior; the trailing 'Free.' is minor padding.

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 14-parameter, nested-schema, no-output-schema tool, the description supplies the missing return contract (PASSES or exact refusals) and the scope of each check, and ties input shape to schedule_post. An agent has enough to decide and invoke correctly.

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?

At 36% schema coverage across 14 parameters, the description must carry weight; it clarifies `at` (default an hour from now), `captions` (per-channel length limits), and `channels` (per-channel rules), and says fields match schedule_post. But it says nothing about link, title, message, imageUrl/imageUrls/videoUrl, timezone, useQueue, accounts, or brand, leaving much of the schema undocumented in both places.

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 ('Check a post BEFORE it is scheduled or published') and immediately enumerates the three checks (caption limits, media validation, full schedule_post dry run). It distinguishes itself from schedule_post by framing itself as the non-storing pre-flight of that same check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit triggers: 'before a bulk schedule' and the user question 'will this work on Instagram?'. The 'BEFORE ... scheduled or published' framing implicitly excludes actual publishing, which is schedule_post's job, but no sibling is named as the alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools