Skip to main content
Glama

Retry failed platform publish

retry_publish_target

Republish the failed target of a post for one platform (only possible when its status is failed). Same restrictions as publish_post: the workspace owner must have enabled direct publishing by agents and this platform must be checked; platforms such as TikTok that require the user's own confirmation are always rejected with a reviewUrl. If the previous result is unknown (it may already have been published), 409 MAIN_WEB_DUPLICATE_RISK_CONFIRMATION_REQUIRED is returned, because the post may end up published twice; calling again with confirmDuplicateRisk:true accepts that risk. A resend uses plan quota; X is counted in points. (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": "retry_publish_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.
confirmDuplicateRiskNoThe user has agreed to accept the risk of duplicate publishing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations cover only safety hints (readOnly=false, idempotent=false, destructive=false, openWorld=true), and the description goes well beyond them: plan-quota consumption, point-based counting for X, the 409 MAIN_WEB_DUPLICATE_RISK_CONFIRMATION_REQUIRED duplicate-publish path, the confirmDuplicateRisk escape hatch, and the required cd.posts.publish scope. The non-idempotent hint is consistent with the disclosed duplicate risk.

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?

The crucial constraints—failed status, agent-publishing eligibility, TikTok rejection, duplicate-risk 409—are front-loaded before quota and scope details. It is long and runs several behaviors into one paragraph, but each sentence carries distinct operational information rather than 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 mutation tool with no output schema and five parameters, the definition covers preconditions, governance/auth scope, quota cost, and the two 409 outcomes an agent must handle. Nothing material to calling it safely appears to be missing.

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 80%, so the baseline is 3, but the description adds real meaning for confirmDuplicateRisk by explaining the 409 flow that makes it necessary and the risk it accepts. The confirm parameter's role in avoiding 409 AGENT_USER_CONFIRMATION_REQUIRED is also framed as user approval of this specific action, which is more than the schema's short note.

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?

The description names a specific verb (republish/retry), a specific resource (the failed target of a post for one platform), and states the precondition plainly: 'only possible when its status is failed.' That precondition and the 'failed target' framing distinguish it from publish_post without the reader needing to open either 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?

It gives a clear when-to-use rule (status must be failed) and a when-not rule (platforms needing the user's own confirmation, like TikTok, are always rejected with a reviewUrl), plus the governance prerequisites that gate the call. It references publish_post for the shared restrictions but never explicitly routes the agent there for non-failed targets, so the alternative is only implied.

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.