Skip to main content
Glama

edit_post

Edit an existing HubPost post that has not published yet (draft or scheduled). Replaces its caption, media, thumbnail, schedule and platform options. The platform is derived from the post; platformOptions must match it.

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>",
      "caption": "<caption>"
    },
    "name": "edit_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesId of the post to edit. Its platform (and options) are derived from the post
captionYesPost caption/body. Length limits depend on the account's platform
mediaIdsNomediaIds from the user's library to attach, in display order, taken from the media list or a finished upload. Some platforms require media, and some accept only images or only video
scheduledAtNoISO 8601 time to publish. Omit to save as a draft. A time already due publishes immediately
platformOptionsNoPlatform-specific options, must match the account's platform. FACEBOOK: { kind: "POST", aiGenerated? } | { kind: "REEL", aiGenerated? } | { kind: "STORY", aiGenerated? }. INSTAGRAM: { kind: "POST", aiGenerated?, collaborators? } | { kind: "REEL", aiGenerated?, collaborators?, shareToFeed?, trialReel?: "OFF" | "MANUAL" | "AUTO" } | { kind: "STORY", aiGenerated? }. X: omit or null. TIKTOK: { privacyLevel, allowComment?, allowDuet?, allowStitch?, contentDisclosure?, yourBrand?, brandedContent?, aiGenerated? }. YOUTUBE: { title, tags, category: "autos_and_vehicles" | "comedy" | "education" | "entertainment" | "film_and_animation" | "gaming" | "howto_and_style" | "music" | "news_and_politics" | "nonprofits_and_activism" | "people_and_blogs" | "pets_and_animals" | "science_and_technology" | "sports" | "travel_and_events", visibility: "public" | "unlisted" | "private", license: "youtube" | "creativeCommon", madeForKids, notifySubscribers, allowEmbedding, aiGenerated? }. THREADS: omit or null. LINKEDIN: omit or null. PINTEREST: { boardId, title?, link? }. BLUESKY: omit or null. aiGenerated: Turn on when AI made or changed this media to look real, like a real-looking person, voice, place or event. Leave off for animation, fantasy visuals, small edits like filters or color, and AI-written captions.
thumbnailMediaIdNoImage mediaId from the user's library to use as the cover of a single-video post. Only some platforms and post kinds accept a custom cover; the post is rejected when it doesn't, so omit it there

Output Schema

NameRequiredDescriptionDefault
postYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover safety (readOnly=false, destructive=false, idempotent=false), so the description earns credit for adding real behavior: the edit REPLACES caption, media, thumbnail, schedule and platform options rather than patching, and the platform/options relationship is enforced. It doesn't say how the operation behaves for omitted fields or what a successful response contains (though an output schema exists).

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?

Two tight sentences: eligibility constraint front-loaded, then the mutation semantics, then the platform-matching rule. Nothing redundant or padded.

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?

With annotations, a rich schema, and an output schema, the description only needs to supply scope and replacement semantics, which it does. The remaining gap is the treatment of omitted/unchanged fields and error behavior for already-published posts, which is only implied.

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 per-parameter baseline is 3. The description adds meaning beyond the schema by framing the edit as a wholesale replacement of caption, media, thumbnail, schedule and options, and by restating that platform is derived rather than supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Edit an existing HubPost post") and narrows scope to unpublished drafts/scheduled posts, which distinguishes it from create_post and delete_post. It never names a sibling or an alternative, so it stops short of a fully differentiating statement.

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 clear conditions: only for posts that have not published yet, and platformOptions must match the post's platform. It omits explicit exclusions or next-step alternatives (e.g. what to do for a published post), so the guidance is clear but not complete.

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.

Resources