Skip to main content
Glama

Edit a composed post

update_post_draft

Change a draft's words, channel, brand, media or Reddit fields. A queued draft is locked — its queue row already holds the copy an approver is reading — so cancel that row first. Editing never publishes.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "update_post_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoReddit only
captionNo
draft_idYes
subredditNoReddit only
project_idNoBrand to scope it to; null clears it
visibilityNo
media_asset_idNoAttach an uploaded asset, or null to remove the media
social_account_idNoMove the draft to another channel (see list_social_accounts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, so the description only needs to add context — and it does: the locked-queued-draft state, the reason (approver is reading the queue copy), and the guarantee that editing never publishes. It omits how a locked-draft attempt fails (error vs. silent no-op) and whether unspecified fields are preserved.

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 sentences, front-loaded with the capability and followed by the one blocking constraint. The explanatory aside about the approver's queue copy earns its place because it justifies the lock rather than just asserting it.

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 an 8-parameter partial-update mutation with no output schema, the definition covers the editable surface, the main failure mode and the no-publish guarantee. The remaining gap — what is returned and whether the response reflects the merged draft — is minor but would help an agent chain calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

At 63% schema coverage the schema already documents the notable parameters (Reddit-only title/subreddit, null clears project, null removes media, moving channel via social_account_id). The description mostly restates those categories as a prose list ('words, channel, brand, media or Reddit fields') and only mildly adds value by grouping them; it adds nothing about partial-update semantics or the undocumented visibility field.

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 (Change) and resource (a draft) and enumerates the mutable facets: words, channel, brand, media, Reddit fields. The closing clause 'Editing never publishes' separates it from edit_published_post, so an agent can pick it without opening 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?

Gives a concrete precondition: a queued draft is locked and the queue row must be cancelled first, which is real routing guidance an agent would otherwise miss. It does not name a specific alternative tool for the 'locked' case (e.g. delete_post_draft or update_schedule), so it stops short of full alternative routing.

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