Skip to main content
Glama

Postlyra.app — Telegram posts from AI chats

Edit Postlyra working content

update_post
Destructive

Edit a post's working content, title, buttons or attention flag. Pass expectedRevision from get_post or the last mutation. On revision_conflict, reread and compare changes; reapply only intended edits with the current revision. Never bypass revision checks. Scheduled and sent messages keep their snapshots until apply_post_to_publication is requested.

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>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "update_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoSaved-item title, e.g. Weekly recap.
localeNoLanguage code, e.g. en or ru.
postIdYesOwner-bound postId from search_posts/search_post_drafts/create_post_draft.
documentJsonNoFull RichDocument from get_formatting_capabilities.
inlineButtonsNoSeparate Telegram keyboard, normally rows: [[{"text":"Open","url":"https://example.com"}]]. A legacy flat array is also supported. RichDocument button blocks use a different type/value shape.
needsAttentionNoWhether to flag this post for the author to review.
expectedRevisionYesCurrent revision from get_post/last mutation. On conflict reread and compare changes; never bypass revision.

Output Schema

NameRequiredDescriptionDefault
dataYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / expectedRevision / description
      Added value: +"Current revision from get_post/last mutation. On conflict reread and compare changes; never bypass revision."
    • changedInput schema / properties / inlineButtons / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "callbackData": {
      -          "type": "string"
      -        },
      -        "copyText": {
      -          "properties": {
      -            "text": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "text"
      -          ],
      -          "type": "object"
      -        },
      -        "iconCustomEmojiId": {
      -          "type": "string"
      -        },
      -        "loginUrl": {
      -          "properties": {
      -            "botUsername": {
      -              "type": "string"
      -            },
      -            "forwardText": {
      -              "type": "string"
      -            },
      -            "requestWriteAccess": {
      -              "type": "boolean"
      -            },
      -            "url": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "style": {
      -          "enum": [
      -            "primary",
      -            "success",
      -            "danger"
      -          ],
      -          "type": "string"
      -        },
      -        "switchInlineQuery": {
      -          "type": "string"
      -        },
      -        "switchInlineQueryChosenChat": {
      -          "properties": {
      -            "allowBotChats": {
      -              "type": "boolean"
      -            },
      -            "allowChannelChats": {
      -              "type": "boolean"
      -            },
      -            "allowGroupChats": {
      -              "type": "boolean"
      -            },
      -            "allowUserChats": {
      -              "type": "boolean"
      -            },
      -            "query": {
      -              "type": "string"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "switchInlineQueryCurrentChat": {
      -          "type": "string"
      -        },
      -        "text": {
      -          "description": "Visible button label.",
      -          "type": "string"
      -        },
      -        "type": {
      -          "enum": [
      -            "url",
      -            "web_app",
      -            "login_url",
      -            "callback_data",
      -            "switch_inline_query",
      -            "switch_inline_query_current_chat",
      -            "switch_inline_query_chosen_chat",
      -            "copy_text"
      -          ],
      -          "type": "string"
      -        },
      -        "url": {
      -          "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      -          "type": "string"
      -        },
      -        "value": {
      -          "description": "Compatibility alias for url only when type=url. Prefer url.",
      -          "type": "string"
      -        },
      -        "webApp": {
      -          "properties": {
      -            "url": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "url"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "text"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "callbackData": {
      -        "type": "string"
      -      },
      -      "copyText": {
      -        "properties": {
      -          "text": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "text"
      -        ],
      -        "type": "object"
      -      },
      -      "iconCustomEmojiId": {
      -        "type": "string"
      -      },
      -      "loginUrl": {
      -        "properties": {
      -          "botUsername": {
      -            "type": "string"
      -          },
      -          "forwardText": {
      -            "type": "string"
      -          },
      -          "requestWriteAccess": {
      -            "type": "boolean"
      -          },
      -          "url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "url"
      -        ],
      -        "type": "object"
      -      },
      -      "style": {
      -        "enum": [
      -          "primary",
      -          "success",
      -          "danger"
      -        ],
      -        "type": "string"
      -      },
      -      "switchInlineQuery": {
      -        "type": "string"
      -      },
      -      "switchInlineQueryChosenChat": {
      -        "properties": {
      -          "allowBotChats": {
      -            "type": "boolean"
      -          },
      -          "allowChannelChats": {
      -            "type": "boolean"
      -          },
      -          "allowGroupChats": {
      -            "type": "boolean"
      -          },
      -          "allowUserChats": {
      -            "type": "boolean"
      -          },
      -          "query": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "switchInlineQueryCurrentChat": {
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Visible button label.",
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "url",
      -          "web_app",
      -          "login_url",
      -          "callback_data",
      -          "switch_inline_query",
      -          "switch_inline_query_current_chat",
      -          "switch_inline_query_chosen_chat",
      -          "copy_text"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      -        "type": "string"
      -      },
      -      "value": {
      -        "description": "Compatibility alias for url only when type=url. Prefer url.",
      -        "type": "string"
      -      },
      -      "webApp": {
      -        "properties": {
      -          "url": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "url"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "text"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "callbackData": {
      +          "description": "Callback payload, 1-64 UTF-8 bytes.",
      +          "type": "string"
      +        },
      +        "copyText": {
      +          "description": "Text to copy when the button is pressed.",
      +          "properties": {
      +            "text": {
      +              "description": "Text to copy to the clipboard.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "iconCustomEmojiId": {
      +          "description": "Telegram custom emoji id for the button icon, when supported.",
      +          "type": "string"
      +        },
      +        "loginUrl": {
      +          "description": "Telegram login action settings.",
      +          "properties": {
      +            "botUsername": {
      +              "description": "Username of the bot linked to the login action.",
      +              "type": "string"
      +            },
      +            "forwardText": {
      +              "description": "Button text shown when this login button is forwarded.",
      +              "type": "string"
      +            },
      +            "requestWriteAccess": {
      +              "description": "Whether to request permission for the bot to message the user.",
      +              "type": "boolean"
      +            },
      +            "url": {
      +              "description": "HTTPS action URL, e.g. https://example.com.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "style": {
      +          "description": "Optional button color: primary, success or danger.",
      +          "enum": [
      +            "primary",
      +            "success",
      +            "danger"
      +          ],
      +          "type": "string"
      +        },
      +        "switchInlineQuery": {
      +          "description": "Inline query inserted after choosing a chat.",
      +          "type": "string"
      +        },
      +        "switchInlineQueryChosenChat": {
      +          "description": "Inline query with permitted chat types for the Telegram chooser.",
      +          "properties": {
      +            "allowBotChats": {
      +              "description": "Allow selecting bot chats.",
      +              "type": "boolean"
      +            },
      +            "allowChannelChats": {
      +              "description": "Allow selecting channels.",
      +              "type": "boolean"
      +            },
      +            "allowGroupChats": {
      +              "description": "Allow selecting groups and supergroups.",
      +              "type": "boolean"
      +            },
      +            "allowUserChats": {
      +              "description": "Allow selecting private user chats.",
      +              "type": "boolean"
      +            },
      +            "query": {
      +              "description": "Inline query text to prefill in the selected permitted chat.",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "switchInlineQueryCurrentChat": {
      +          "description": "Inline query inserted in the current chat.",
      +          "type": "string"
      +        },
      +        "text": {
      +          "description": "Visible button label.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Telegram keyboard action type; choose exactly one supported action.",
      +          "enum": [
      +            "url",
      +            "web_app",
      +            "login_url",
      +            "callback_data",
      +            "switch_inline_query",
      +            "switch_inline_query_current_chat",
      +            "switch_inline_query_chosen_chat",
      +            "copy_text"
      +          ],
      +          "type": "string"
      +        },
      +        "url": {
      +          "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      +          "type": "string"
      +        },
      +        "value": {
      +          "description": "Compatibility alias for url only when type=url. Prefer url.",
      +          "type": "string"
      +        },
      +        "webApp": {
      +          "description": "Telegram Web App action with its HTTPS URL.",
      +          "properties": {
      +            "url": {
      +              "description": "HTTPS action URL, e.g. https://example.com.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "callbackData": {
      +        "description": "Callback payload, 1-64 UTF-8 bytes.",
      +        "type": "string"
      +      },
      +      "copyText": {
      +        "description": "Text to copy when the button is pressed.",
      +        "properties": {
      +          "text": {
      +            "description": "Text to copy to the clipboard.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "iconCustomEmojiId": {
      +        "description": "Telegram custom emoji id for the button icon, when supported.",
      +        "type": "string"
      +      },
      +      "loginUrl": {
      +        "description": "Telegram login action settings.",
      +        "properties": {
      +          "botUsername": {
      +            "description": "Username of the bot linked to the login action.",
      +            "type": "string"
      +          },
      +          "forwardText": {
      +            "description": "Button text shown when this login button is forwarded.",
      +            "type": "string"
      +          },
      +          "requestWriteAccess": {
      +            "description": "Whether to request permission for the bot to message the user.",
      +            "type": "boolean"
      +          },
      +          "url": {
      +            "description": "HTTPS action URL, e.g. https://example.com.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "style": {
      +        "description": "Optional button color: primary, success or danger.",
      +        "enum": [
      +          "primary",
      +          "success",
      +          "danger"
      +        ],
      +        "type": "string"
      +      },
      +      "switchInlineQuery": {
      +        "description": "Inline query inserted after choosing a chat.",
      +        "type": "string"
      +      },
      +      "switchInlineQueryChosenChat": {
      +        "description": "Inline query with permitted chat types for the Telegram chooser.",
      +        "properties": {
      +          "allowBotChats": {
      +            "description": "Allow selecting bot chats.",
      +            "type": "boolean"
      +          },
      +          "allowChannelChats": {
      +            "description": "Allow selecting channels.",
      +            "type": "boolean"
      +          },
      +          "allowGroupChats": {
      +            "description": "Allow selecting groups and supergroups.",
      +            "type": "boolean"
      +          },
      +          "allowUserChats": {
      +            "description": "Allow selecting private user chats.",
      +            "type": "boolean"
      +          },
      +          "query": {
      +            "description": "Inline query text to prefill in the selected permitted chat.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "switchInlineQueryCurrentChat": {
      +        "description": "Inline query inserted in the current chat.",
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Visible button label.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Telegram keyboard action type; choose exactly one supported action.",
      +        "enum": [
      +          "url",
      +          "web_app",
      +          "login_url",
      +          "callback_data",
      +          "switch_inline_query",
      +          "switch_inline_query_current_chat",
      +          "switch_inline_query_chosen_chat",
      +          "copy_text"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Compatibility alias for url only when type=url. Prefer url.",
      +        "type": "string"
      +      },
      +      "webApp": {
      +        "description": "Telegram Web App action with its HTTPS URL.",
      +        "properties": {
      +          "url": {
      +            "description": "HTTPS action URL, e.g. https://example.com.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "text"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / locale / description
      Added value: +"Language code, e.g. en or ru."
    • addedInput schema / properties / needsAttention / description
      Added value: +"Whether to flag this post for the author to review."
    • addedInput schema / properties / postId / description
      Added value: +"Owner-bound postId from search_posts/search_post_drafts/create_post_draft."
    • addedInput schema / properties / title / description
      Added value: +"Saved-item title, e.g. Weekly recap."
  2. Changed3 schema fields changed
    • addedInput schema / properties / inlineButtons / description
      Added value: +"Separate Telegram keyboard, normally rows: [[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]. A legacy flat array is also supported. RichDocument button blocks use a different type/value shape."
    • addedInput schema / properties / inlineButtons / items / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "callbackData": {
      +          "type": "string"
      +        },
      +        "copyText": {
      +          "properties": {
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "text"
      +          ],
      +          "type": "object"
      +        },
      +        "iconCustomEmojiId": {
      +          "type": "string"
      +        },
      +        "loginUrl": {
      +          "properties": {
      +            "botUsername": {
      +              "type": "string"
      +            },
      +            "forwardText": {
      +              "type": "string"
      +            },
      +            "requestWriteAccess": {
      +              "type": "boolean"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "style": {
      +          "enum": [
      +            "primary",
      +            "success",
      +            "danger"
      +          ],
      +          "type": "string"
      +        },
      +        "switchInlineQuery": {
      +          "type": "string"
      +        },
      +        "switchInlineQueryChosenChat": {
      +          "properties": {
      +            "allowBotChats": {
      +              "type": "boolean"
      +            },
      +            "allowChannelChats": {
      +              "type": "boolean"
      +            },
      +            "allowGroupChats": {
      +              "type": "boolean"
      +            },
      +            "allowUserChats": {
      +              "type": "boolean"
      +            },
      +            "query": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "switchInlineQueryCurrentChat": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "description": "Visible button label.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "url",
      +            "web_app",
      +            "login_url",
      +            "callback_data",
      +            "switch_inline_query",
      +            "switch_inline_query_current_chat",
      +            "switch_inline_query_chosen_chat",
      +            "copy_text"
      +          ],
      +          "type": "string"
      +        },
      +        "url": {
      +          "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      +          "type": "string"
      +        },
      +        "value": {
      +          "description": "Compatibility alias for url only when type=url. Prefer url.",
      +          "type": "string"
      +        },
      +        "webApp": {
      +          "properties": {
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "callbackData": {
      +        "type": "string"
      +      },
      +      "copyText": {
      +        "properties": {
      +          "text": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "iconCustomEmojiId": {
      +        "type": "string"
      +      },
      +      "loginUrl": {
      +        "properties": {
      +          "botUsername": {
      +            "type": "string"
      +          },
      +          "forwardText": {
      +            "type": "string"
      +          },
      +          "requestWriteAccess": {
      +            "type": "boolean"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "style": {
      +        "enum": [
      +          "primary",
      +          "success",
      +          "danger"
      +        ],
      +        "type": "string"
      +      },
      +      "switchInlineQuery": {
      +        "type": "string"
      +      },
      +      "switchInlineQueryChosenChat": {
      +        "properties": {
      +          "allowBotChats": {
      +            "type": "boolean"
      +          },
      +          "allowChannelChats": {
      +            "type": "boolean"
      +          },
      +          "allowGroupChats": {
      +            "type": "boolean"
      +          },
      +          "allowUserChats": {
      +            "type": "boolean"
      +          },
      +          "query": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "switchInlineQueryCurrentChat": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Visible button label.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "url",
      +          "web_app",
      +          "login_url",
      +          "callback_data",
      +          "switch_inline_query",
      +          "switch_inline_query_current_chat",
      +          "switch_inline_query_chosen_chat",
      +          "copy_text"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "URL action, e.g. https://example.com. Canonical external keyboard field is url, not RichDocument value.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Compatibility alias for url only when type=url. Prefer url.",
      +        "type": "string"
      +      },
      +      "webApp": {
      +        "properties": {
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "text"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / inlineButtons / items / type
      Removed value: -"object"
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark the tool as destructive and non-idempotent, but the description adds substantial behavioral context: revision checks are mandatory, conflicts require rereading and reconciliation, and edits affect working content rather than scheduled/sent snapshots. This directly reduces the risk of unsafe or accidental mutation.

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?

The description is front-loaded and efficient: four sentences cover purpose, required revision discipline, conflict recovery, and snapshot behavior without wasted prose.

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?

Given a rich input schema, an output schema, and annotations, the description supplies the missing operational context an agent needs: revision-based concurrency control, conflict recovery, and the boundary between working content and publication snapshots.

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 description coverage is 100%, so parameter meanings are already well documented. The description reinforces expectedRevision and conflict handling but adds little beyond what the schema text already says for the other parameters.

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: editing a post's working content, title, buttons, or attention flag. It clearly scopes the edit to working content and distinguishes scheduled/sent snapshots, though it does not explicitly name the sibling update_post_draft as an alternative.

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 usage context: pass expectedRevision from get_post or the last mutation, and on conflict reread, compare, and reapply intended edits. It also notes that scheduled and sent messages retain snapshots until apply_post_to_publication is requested, providing a useful boundary condition.

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.