Skip to main content
Glama

Delete published content from platform

delete_published_target
DestructiveIdempotent

Deletes publicly published content from the social platform. Requires confirm:true, which indicates the user has confirmed deleting this specific post on this platform; without it, 409 MAIN_WEB_DELETE_CONFIRMATION_REQUIRED is returned. Deletion cannot be undone. Only this one item on this one platform is deleted; other platforms are not affected. Same direct-publish gate as publish_post (enabled by the owner, platform checked; never allowed for TikTok); TikTok, YouTube, Telegraph, and Instagram do not support deletion through Content Distributor and return 409 MAIN_WEB_REMOTE_DELETE_UNSUPPORTED (Instagram posts can be deleted in the Instagram app). (Required scope: cd.posts.publish)

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": {
      "postId": "<postId>",
      "targetId": "<targetId>",
      "confirm": "<confirm>"
    },
    "name": "delete_published_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYes
confirmYestrue = the user has approved this specific action. Without it the request is rejected with 409 AGENT_USER_CONFIRMATION_REQUIRED.
targetIdYestargets[].id returned by get_post
workspaceIdNoOptional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, but the description adds real substance: irreversibility, the confirm gating requirement, the per-target scope, and the specific 409 error codes for unsupported platforms. One defect: it names 409 MAIN_WEB_DELETE_CONFIRMATION_REQUIRED while the schema's confirm field names 409 AGENT_USER_CONFIRMATION_REQUIRED, giving the agent two conflicting codes for the same condition.

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 action and scope; the conditional and error details follow logically. It is dense but nearly every clause carries operational value, though the parenthetical about deleting Instagram posts in-app and the redundant TikTok mention add a little noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema, it covers confirmation, irreversibility, platform support limits, permission scope, and blast radius. The only gaps are the conflicting confirmation error code and the absence of guidance on which sibling handles non-published deletion.

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 75%, so baseline is 3, and the description does add meaning by clarifying that confirm means the user approved deleting this specific post on this specific platform, not a generic acknowledgement. It leaves targetId and workspaceId to the schema, which documents them adequately.

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 ('Deletes publicly published content') plus precise scope ('Only this one item on this one platform is deleted; other platforms are not affected'). An agent can distinguish this from delete_draft or cancel_post purely from the text.

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 strong when-not guidance: it enumerates platforms that do not support deletion and explains the shared direct-publish gate with publish_post. It also states the required scope cd.posts.publish. It stops short of routing to alternatives (e.g., deleting a draft, cancelling a scheduled post), so an agent must infer which sibling to use for non-published content.

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.