Skip to main content
Glama

Cancel a scheduled post

cancel_post
Destructive

Withdraws a scheduled post before it goes out, so nothing is sent; the post answers cancelled and its video can be prepared and scheduled again. WHEN: the user asks to cancel or replace a scheduled post (a wrong video, caption or time). ONLY A TIKTOK OR INSTAGRAM POST AICUT STILL HOLDS: scheduled with schedule_custody: aicut_scheduler. A scheduled YouTube post cannot be cancelled here: it is already uploaded and YouTube holds it, so the user changes or deletes it in YouTube Studio. A post due within a minute, or one the scheduler has picked up, is already being sent and is refused. Cancel only a post the user named in this session, in their own words. To change only the time, use publish_post with a new schedule_at instead. 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.

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": "cancel_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYesThe `id` of the scheduled post, as `prepare_post` returned it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructiveHint=true; the description adds far more: the video survives and can be re-scheduled, cancellation is gated on `schedule_custody: aicut_scheduler` and `scheduled` status, near-due posts are actively refused, and a 403 `insufficient_scope` is a permission problem with a concrete disconnect/reconnect remediation. That is genuine behavior beyond the annotation set.

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 outcome, then preconditions, then the error path; every sentence is operational. It is on the long side, and the trailing pointer to `prepare_post`'s REFUSALS plus a full URL remediation is more detail than an agent needs inline, but nothing is filler.

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 one-parameter destructive tool with no output schema, the definition covers preconditions, post-state, recovery of the underlying video, refusal cases, and the auth-failure path. An agent has everything needed to decide whether to call it and how to interpret failure.

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% for the single `post_id` parameter, so the baseline is 3. The description adds a constraint on selecting the id ("only a post the user named in this session, in their own words") but no format or validation detail beyond what the schema already states.

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 ("Withdraws a scheduled post before it goes out") plus the resulting state ("the post answers `cancelled`"). It is clearly separable from `publish_post` (rescheduling) and `prepare_post` (which creates posts) by naming those siblings' roles.

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?

An explicit WHEN clause covers the trigger cases (wrong video, caption or time), and it lists exclusions: YouTube posts must be handled in YouTube Studio, posts due within a minute are refused, and time-only changes route to `publish_post` with a new `schedule_at`. Alternatives and when-not conditions are both present.

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.