Skip to main content
Glama

Update draft

update_draft
DestructiveIdempotent

Modify a draft; only the fields passed are changed, and omitted fields stay as they are. updatedAt must be the value most recently returned by get_post or create_draft; if it does not match, the draft was modified in the meantime and 409 MAIN_DRAFT_CONFLICT is returned. Only drafts can be modified; a scheduled post becomes a draft again after it is canceled and reopened. The user declaration fields for TikTok and YouTube cannot be written; if the user has already made such declarations on the web for the draft, AGENT_DRAFT_USER_CONFIRMED is returned, and those fields can only be changed by the user at reviewUrl. (Required scope: cd.posts.draft)

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>",
      "updatedAt": "<updatedAt>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
titleNo
postIdYes
hashtagsNo
mediaIdsNoList of media ids (replaces the whole list)
updatedAtYesThe most recently read updatedAt
contentTextNo
descriptionNo
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.
platformTargetsNoList of connected account ids (replaces the whole list)
accountOverridesNo
platformOverridesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by disclosing optimistic concurrency via updatedAt with the exact 409 MAIN_DRAFT_CONFLICT failure mode, the fact that TikTok/YouTube user declaration fields are unwritable and trigger AGENT_DRAFT_USER_CONFIRMED, and the required cd.posts.draft scope. Destructive/idempotent hints in annotations are consistent with this partial-update, conflict-checked mutation story.

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 most decision-relevant rule (only passed fields change), then conflict semantics, then the field-restriction edge case, with a trailing scope tag. Every sentence carries information, though the multi-clause sentence about canceled/reopened posts is slightly dense.

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 12-parameter destructive mutation with no output schema, the definition covers what matters most: concurrency, failure codes, and which fields are immutable. It does not describe the structure or merge behavior of accountOverrides/platformOverrides, which is the main remaining gap.

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?

Schema coverage is only 33% across 12 params, but the description compensates well for the riskiest one: updatedAt must be the value most recently returned by get_post/create_draft or the call fails. It also constrains the override fields for TikTok/YouTube declarations. The remaining fields (tags, hashtags, title, contentText, accountOverrides, platformOverrides) get no meaning beyond their names, and the nested override objects are left unexplained.

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?

Opens with a specific verb+resource ('Modify a draft') and immediately adds the distinguishing semantic: partial update, where only fields passed change and omitted fields stay. It also names the related tools (get_post, create_draft) whose values feed the required updatedAt, so an agent can separate it from create_draft or update_group.

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?

Explicit preconditions are given: only drafts can be modified, and a scheduled post must first be canceled and reopened to become a draft again — a clear nod to cancel_post as the alternative path. It lacks a direct 'use X instead when...' statement, but the when-to-use conditions are unambiguous.

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.