Skip to main content
Glama

Postlyra

Update a Postlyra post draft

update_post_draft

Use this when editing a draft. Read preview_post and get_formatting_capabilities; send the complete edited richDocument, preserving untouched content/media URLs. text replaces layout. Import files and bind slots as media.src for exact placement; image-only additions can use attach_media_to_draft. Returns native JPEG and display instructions. Include the image in the FINAL answer via native attachment or display.imageMarkdown, then the preview link. Inspect preview_post. Never publishes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoReplaces the existing layout using the simple text parser. Prefer richDocument to preserve formatting and media.
draftIdYes
channelIdNoOptional owner-bound Postlyra channel id or exact title returned by list_channels.
mediaFile1NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFile2NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFile3NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFile4NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFile5NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFile6NoActual attached or generated image file, up to 10 MiB: JPEG, PNG, GIF or WebP. Pass the file through the client upload mechanism; the server receives download_url and file_id. mime_type and file_name may be omitted. In the same richDocument call, use this slot name as media.src for exact placement.
mediaFilesNoAlternative file array for clients supporting file arrays. Prefer mediaFile1..mediaFile6 otherwise. At most 6 files total across slots and array; use mediaFiles[0] etc. as richDocument src bindings.
referencesNo
templateIdNo
instructionsNoLimited hints only: shorter, title, quote, CTA. For rewriting, restyling or exact placement supply the complete richDocument; this field does not run an AI editor.
richDocumentNoComplete replacement RichDocument: {version:1, blocks:[...]}. Start from preview_post.documentJson and preserve untouched content and stored media URLs. Read get_formatting_capabilities for syntax and file-slot bindings.
appendCallToActionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
textNo
titleNo
localeNo
statusNo
displayNo
draftIdYes
messageYes
richHtmlNo
updatedAtNo
previewUrlYes
screenshotNo
documentJsonNo
inlineButtonsNo
screenshotUrlNoJPEG screenshot of the saved Telegram preview; null if rendering is temporarily unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint=false and destructiveHint=false, the description adds real behavioral context: complete replacement of richDocument, preserving untouched content and stored media URLs, text replacing layout, media binding rules, and the never-publishes guarantee. These non-obvious side effects are the value-add, though the exact output/response contract is left to the output schema.

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?

Compact and dense, with the usage trigger front-loaded and operational sequencing packed into short clauses. It is effective but slightly telegraphic — the second half reads as a list of imperatives (Import files, Include the image, Inspect preview_post) that could be structured more clearly.

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 15-parameter mutation tool with a complex nested richDocument and an output schema present, the description covers the critical authoring workflow, preserve-what-you-don't-touch behavior, media binding, and the no-publish guarantee. Return values are rightly deferred to the output schema, leaving only minor gaps such as idempotency/error behavior.

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 description coverage is 73%, so the schema carries much of the load, but the description adds meaning beyond it: 'text replaces layout', richDocument must be the complete edited document started from preview_post.documentJson, media files bind as media.src, and instructions is limited hints only and does not run an AI editor. These clarify non-obvious interactions between parameters that the schema alone does not convey.

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

Purpose3/5

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

The name and title say 'update a post draft', while the description opens with 'Use this when editing a draft' — a usage trigger rather than a clean statement of what the tool does. It implies a draft-editing/update operation but never states plainly that it modifies an existing draft by id, and it does not differentiate itself from siblings like update_post, attach_media_to_draft, or create_post_draft.

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 names prerequisites (read preview_post and get_formatting_capabilities first) and routes image-only additions to attach_media_to_draft, which is genuine when-to-use guidance. It stops short of saying when not to use it (e.g. versus update_post or create_post_draft), so it is clear context but incomplete exclusions.

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.