Skip to main content
Glama
Upload-Post

Upload-Post

Official

Retry a failed upload

retry_post

Retry a failed social media upload by requestId or jobId. Only the platforms that failed are published again; already published platforms are skipped, so you can resolve partial publishing failures.

Instructions

Retry a failed upload. Identify it by either requestId (async upload) or jobId (scheduled/queued upload). Only the platforms that failed are sent again; the ones that already published are left alone and come back in skipped_platforms. A job that published everywhere answers 409 nothing_to_retry, and one that has not run yet 409 job_not_finished (use edit_scheduled or cancel_scheduled for those). The retry is a new upload with its own request_id / job_id: poll that one.

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

Input Schema

NameRequiredDescriptionDefault
jobIdNoScheduled/queued job_id to retry.
requestIdNoAsync upload request_id to retry.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Addedv0.7.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) by disclosing that only failed platforms are resent, that published ones are returned in skipped_platforms, and the exact 409 error strings. It also warns that the retry is a new unit of work with its own request_id/job_id that must be polled instead of the old one, which is the kind of side effect an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, each carrying a distinct fact: what it does, how to identify the target, what gets resent vs skipped, error conditions with alternatives, and the new ID to poll. Nothing is repeated and the core action is front-loaded.

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?

Covers identification, partial-retry semantics, error paths, alternatives, and the follow-up handle, which is more than enough for a two-parameter tool with an output schema. The only minor gap is that it never states whether exactly one of requestId/jobId must be supplied (required count is 0), leaving the both/neither case unaddressed.

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%, so the baseline is 3, but the description adds the disambiguation rule that either identifier selects a different upload class (async vs scheduled/queued) rather than being freely interchangeable. Slight redundancy with the schema field descriptions keeps it from a 5.

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 ('Retry a failed upload') and immediately narrows scope to failures, distinguishing it from a fresh upload or a scheduled-job edit. The identification modes (requestId for async, jobId for scheduled) let an agent pick the right handle without opening the 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 routes the agent away in the two cases where retry is wrong: a job not yet run points to edit_scheduled or cancel_scheduled, and the 409 codes name the exact failure conditions. That is when-to-use, when-not-to-use, and the alternative tools in one paragraph.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools