Skip to main content
Glama

Update an existing post

update_draft_post
Destructive

Modify an existing post IN PLACE — there is no need to delete and recreate it, and recreating would lose its history. Optional fields: content (string for a simple post, array of strings for a thread — replaces the whole text), account_ids (replaces the target accounts), media_uuids (replaces the media, order preserved; an empty array removes them), scheduled_at (an ISO 8601 UTC date actually schedules the post; null unschedules it and sends it back to DRAFT; omitted leaves the schedule untouched). Omitted fields are kept, including the media when only the text changes. The previous content is replaced and not kept, so confirm the new wording before calling. Refused when the post is already published or currently publishing. — FR : modifie un post EN PLACE ; les champs omis sont conservés, le contenu remplacé est perdu.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoNouveau texte (remplace tout). String = post simple ; tableau de strings = thread (un bloc par élément). Omis = texte conservé.
post_uuidYes
account_idsNoRemplace les comptes cibles. Omis = comptes conservés.
media_uuidsNoRemplace les médias du premier bloc (ordre préservé). Tableau vide = retire les médias. Omis = médias conservés.
scheduled_atNoDate de publication (ISO 8601 UTC) : programme le post. `null` DÉPROGRAMME et le repasse en brouillon. Omis = programmation inchangée.
workspace_uuidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description reinforces this with concrete consequences: previous content is replaced and not kept, omitted fields are preserved, empty array removes media, null reschedules back to DRAFT. That is well beyond what the annotations convey.

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 key in-place/no-recreate point is front-loaded and the per-field semantics are tightly packed. The trailing French sentence duplicates the same content, which is useful for bilingual users but redundant padding for an agent, costing it the top score.

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, the description covers what can go wrong (refusal on published posts), what is destroyed (replaced content), and how each optional field behaves when omitted or set to null/empty. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Despite only 67% schema coverage, the description documents each optional field's replacement semantics (content string vs thread array replacing all text, account_ids replaces targets, media_uuids replaces with order preserved and empty array clears, scheduled_at null unschedules). It adds interpretation the French schema descriptions alone do not fully surface for an English-reading agent.

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?

A specific verb ('Modify') plus resource ('an existing post') and an explicit scope qualifier ('IN PLACE'). It distinguishes itself from delete_post/create_draft_post siblings by stating that recreating would lose history, so an agent can pick it over the alternatives without inspecting schemas.

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 explains why to use update-in-place over delete/recreate and gives a clear negative condition ('Refused when the post is already published or currently publishing'). It stops short of naming a sibling tool or a pre-fetch step, so it is strong context without full explicit 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