Skip to main content
Glama

Publish a prepared post

publish_post
Destructive

Sends a post staged by prepare_post, or schedules it. Irreversible: the post goes out under the user's own name and cannot be taken down from aicut. It is for a post the user has confirmed: either in chat, after a question that named the account, the text, the visibility and any scheduled time (a bare 'yes' confirms only when that question about this post was the message immediately before it), or in the publish card opened by review_post. A card confirmation arrives as a chat message that includes the id of the post the card staged from the user's choices; that is the post_id to send. The caption, visibility and disclosure are fixed when the post is prepared and cannot be changed here. schedule_at is the one field that can differ from what the user approved: it changes the publish time, so set it only when the user asked for a different time after confirming. IT NEVER ANSWERS posted: TikTok answers publishing (it still fetches the file, which can fail); YouTube and Instagram answer submitted (aicut's poster has it, nothing is confirmed); a scheduled post answers scheduled. Poll get_post_status until posted, draft_sent or failed; never tell the user their video is live on the strength of this call. A TikTok draft ends at draft_sent and cannot be scheduled. SCHEDULING: schedule_at sets or moves the time, null sends a post prepared for later now. A scheduled TikTok or Instagram post waits in aicut (a full window REFUSES a schedule with retry_after_seconds: move it at least that much later); a scheduled YouTube post is uploaded at once as private and published by YouTube, so it stays scheduled with a post_id you can hand the user. THE POSTING LIMITS, so you can pace a batch instead of discovering them: per CONNECTED ACCOUNT, tiktok 5/min and 13/24h, youtube 2/min and 10/24h, instagram 4/min and 45/24h. Both windows are ROLLING (the 24h one does not reset at midnight). Over the limit you get a 429 (post_rate_limited or daily_post_limit) with retry_after_seconds: respect it, and do not prepare a second post or use a second account to get around it. A slot is taken only by a call that reaches the platform, so every refusal raised before that point is FREE (a 400, 404, 409 already_published / post_expired / consent_required / video_not_ready, a 403 insufficient_scope, a TikTok preflight failure): fix it and retry at once. prepare_post is a separate meter (5/min, 100/24h per connected account). Scheduling spends the same allowance, counted around the scheduled time. 403 insufficient_scope = the user's connection lacks the social:publish permission: not a bad video_id or account_id, and a retry cannot fix it. Tell them to disconnect and reconnect aicut at https://www.aicut.pro/account/settings#connections (the full steps are in prepare_post's REFUSALS), then STOP. A 403 here posted NOTHING: say plainly that the video did not go out.

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": {
      "post_id": "<post_id>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYesThe `id` returned by `prepare_post`.
schedule_atNoISO-8601 time to publish at, at least 10 minutes ahead; overrides what `prepare_post` recorded. Null sends the post now. Omit to keep the prepared time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-idempotent, but the description adds far more: what cannot be undone ('cannot be taken down from aicut'), why it never returns `posted` and what each platform actually returns, per-platform rolling rate limits with window semantics, and which refusals consume a slot versus being free. The 403 section explains that a scope failure posted nothing and gives concrete remediation, which is exactly the context annotations cannot carry.

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?

Purpose and irreversibility are front-loaded, and the section headers (SCHEDULING, THE POSTING LIMITS) make the dense payload scannable. Every block is load-bearing for a batch-pacing agent, though the rate-limit and refusal taxonomy is long enough that key rules risk being skimmed; a small amount of the retry guidance is duplicated from `prepare_post`.

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?

No output schema exists, and the description fully compensates by enumerating the possible status answers per platform and prescribing the polling loop until `posted`, `draft_sent` or `failed`. For a destructive, high-consequence publish action it covers confirmation, scheduling, limits, failure modes and remediation without gaps.

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% (baseline 3), yet the description adds policy meaning the schema lacks: `post_id` should come from the card confirmation's embedded id, and `schedule_at` is the sole field permitted to diverge from what the user approved. It also explains what a full scheduling window does to that parameter (`retry_after_seconds` refusal). Marginal value over the schema is real but modest since the schema already documents ISO-8601, the 10-minute floor, null and omit behavior.

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?

Opens with a specific verb and resource ('Sends a post staged by `prepare_post`, or schedules it'), naming the upstream sibling that produces the input. An agent can distinguish it immediately from `prepare_post` (staging) and `review_post` (card confirmation) without opening a 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?

Explicitly states the precondition for calling — a user confirmation either in chat (with the exact rule for what counts as a bare 'yes') or via the publish card opened by `review_post`. It also constrains the one mutable field ('set it only when the user asked for a different time after confirming') and routes post-call behavior to `get_post_status`.

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.