Skip to main content
Glama

delete_post

Destructive

Delete a post. Drafts and scheduled posts are removed; a published post is hidden but keeps its metrics history unless preserve_analytics=false.

post_ids deletes up to 50 with the same options in one call; each answers in posts, and one that fails does not stop the rest. idea_id deletes a saved idea instead.

Args: post_id: The post ID to delete. delete_from_platforms: True also deletes it from every platform it was published to; a list of platform names limits that to those. TikTok has no delete API. Omitted, the live posts stay. preserve_analytics: Published posts only; defaults to true. workspace_id: Workspace ID or name. Optional if user has only one workspace. post_ids: Several posts to delete, instead of post_id. idea_id: A saved idea (from list_posts(status="idea")) to delete instead of a post.

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

Input Schema

NameRequiredDescriptionDefault
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
idea_idNo
post_idNo
post_idsNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
workspace_idNo
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.
preserve_analyticsNo
delete_from_platformsNo

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idea_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Idea Id"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  3. Changed5 schema fields changed
    • addedInput schema / properties / post_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / post_id / default
      Added value: +null
    • removedInput schema / properties / post_id / type
      Removed value: -"string"
    • addedInput schema / properties / post_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Post Ids"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "post_id"
      -]New value: +[]
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "post_id",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "post_id"
      +]
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past destructiveHint=true: it discloses that drafts/scheduled are actually removed while published posts are only hidden, that metrics history survives unless preserve_analytics=false, that TikTok has no delete API, that partial failures don't abort the batch, and once-omitted delete_from_platforms leaves live posts untouched. That is exactly the consequence-level detail an agent needs before a destructive call.

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 core consequence sentence, then batching semantics, then a clean Args block. Minor redundancy as some Args entries restate the opening paragraph (post_ids, preserve_analytics), but nothing is wasted enough to hurt.

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?

Complete for a 9-parameter destructive tool: consequences, defaults, platform limitations, batching failure semantics, and the alternate idea path are all covered, and a return schema exists so return values needn't be described.

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?

With schema coverage at 33%, the description carries the load and does: it gives defaults (preserve_analytics=true), scope constraints (max 50 ids), the polymorphic behavior of delete_from_platforms (bool vs list), and the workspace_id optionality rule. The analytics plumbing params (context, llm_model, conversation_id) are left to the schema, which already documents them.

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?

"Delete a post" is a specific verb+resource, and the description immediately sharpens scope by distinguishing drafts/scheduled (removed) from published (hidden, metrics retained), plus the separate idea_id path. An agent can tell this apart from delete_media or update_post 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 Guidelines4/5

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

Explicit routing between the three modes: post_id for one, post_ids for up to 50, idea_id for a saved idea, and delete_from_platforms for taking down live copies (with the note that omitting it leaves live posts up). No guidance on when to prefer this over delete_media, but the internal alternatives are all named with conditions.

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.