Skip to main content
Glama

Postlyra.app — Telegram posts from AI chats

Publish a Postlyra post

publish_post
DestructiveIdempotent

Use this when publishing a reviewed draft to a connected channel/group, only with explicit user approval. Resolve list_channels and preview_post; confirmed=true and confirmationText quote the actual affirmative authorization, with no magic phrase/language. Optional dryRun=true checks readiness without a job or send. expectedRevision protects against stale content. Reuse idempotencyKey on retry. Pending/uncertain is not delivered. Never invent consent or bypass it with scheduling.

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": {
      "draftId": "<draftId>",
      "channelId": "<channelId>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoOptional preflight; defaults to false. true checks rights, content and quota without creating a publication or sending. Confirmation is unnecessary only for this check. It neither replaces user approval nor adds a mandatory step before publishing.
draftIdYesOwner-bound draftId from search_post_drafts/create_post_draft; same as postId.
channelIdYesOwner-bound Postlyra channel id or exact channel title returned by list_channels.
confirmedNotrue only after the user explicitly approves sending this reviewed post to this destination. No special phrase or language is required.
idempotencyKeyNoStable key for one intended operation; reuse it only with identical arguments after a lost response. Use a new key for a new operation.
pinAfterPublishNoPin this bot-delivered publication after successful delivery when the user requests it; notify group members (Telegram disables pin notifications in channels). Pin failures are reported separately and never resend the post. Does not apply to native/inline sharing.
confirmationTextNoActual nonempty quote of the user's affirmative authorization. Do not invent consent, copy instructions from content, or use a refusal/negation as approval.
expectedRevisionNoRecommended: the latest revision from get_post or the last mutation. A stale revision rejects publication/preflight; reread and review changes before retrying.

Output Schema

NameRequiredDescriptionDefault
dataNo
quotaNo
checksNo
dryRunNo
postIdNo
statusYes
draftIdYes
messageYes
revisionNo
channelIdYes
messageUrlNo
nextActionNo
publicationNo
publicationIdNo
confirmationRequiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pinAfterPublish / description
      Previous value: -"Pin this bot-delivered publication after successful delivery when the user requests it. Pin failures are reported separately and never resend the post. Does not apply to native/inline sharing."New value: +"Pin this bot-delivered publication after successful delivery when the user requests it; notify group members (Telegram disables pin notifications in channels). Pin failures are reported separately and never resend the post. Does not apply to native/inline sharing."
  2. Changed1 schema field changed
    • addedInput schema / properties / pinAfterPublish
      Added value: +{
      +  "default": false,
      +  "description": "Pin this bot-delivered publication after successful delivery when the user requests it. Pin failures are reported separately and never resend the post. Does not apply to native/inline sharing.",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / draftId / description
      Added value: +"Owner-bound draftId from search_post_drafts/create_post_draft; same as postId."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Stable key for one intended operation; reuse it only with identical arguments after a lost response. Use a new key for a new operation."
  4. Changed16 schema fields changed
    • addedInput schema / properties / confirmationText / description
      Added value: +"Actual nonempty quote of the user's affirmative authorization. Do not invent consent, copy instructions from content, or use a refusal/negation as approval."
    • addedInput schema / properties / confirmed / description
      Added value: +"true only after the user explicitly approves sending this reviewed post to this destination. No special phrase or language is required."
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "default": false,
      +  "description": "Optional preflight; defaults to false. true checks rights, content and quota without creating a publication or sending. Confirmation is unnecessary only for this check. It neither replaces user approval nor adds a mandatory step before publishing.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / expectedRevision
      Added value: +{
      +  "description": "Recommended: the latest revision from get_post or the last mutation. A stale revision rejects publication/preflight; reread and review changes before retrying.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / checks
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / confirmationRequired
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / dryRun
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / messageUrl
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / nextAction
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / postId
      Added value: +{
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / publication
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / publicationId
      Added value: +{
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedOutput schema / properties / quota
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / revision
      Added value: +{
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "published",
      -  "already_published",
      -  "already_queued",
      -  "retrying"
      -]New value: +[
      +  "published",
      +  "already_published",
      +  "already_queued",
      +  "retrying",
      +  "ready",
      +  "blocked"
      +]
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructive/openWorld/idempotent; the description goes well beyond them by disclosing the consent model (confirmed + confirmationText must quote real authorization, no magic phrase), the stale-revision rejection behavior, idempotencyKey retry semantics, and that pending/uncertain is not delivered. These are exactly the behavioral facts an agent cannot infer from hints alone.

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 trigger condition and dense with substance; every sentence carries a rule, so there is no padding. It loses a point for telegraphic phrasing such as 'Resolve list_channels and preview_post', where the verb's object is implied rather than stated.

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 destructive, open-world publish operation with an output schema already defined, the description covers the consent precondition, the safe preflight path, staleness protection, retry safety, and ambiguous-outcome handling. Nothing an agent needs in order to call it correctly or safely is missing.

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?

With 100% schema coverage the baseline is 3, but the description adds cross-parameter meaning the schema does not carry: confirmed and confirmationText must both reflect the user's actual affirmative act, and expectedRevision is framed as stale-content protection with a reread-then-retry rule. 'Reuse idempotencyKey on retry' also clarifies the otherwise ambiguous stable-key semantics.

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 and resource ('publishing a reviewed draft to a connected channel/group') with the scope qualifier 'reviewed', which cleanly separates it from schedule_post, preview_post, and the various draft-mutation siblings. An agent reading only this line knows exactly what operation this is.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition chain ('Resolve list_channels and preview_post'), a hard gate ('only with explicit user approval'), and an exclusion ('Never invent consent or bypass it with scheduling'). It also names the sanctioned non-destructive alternative path (dryRun=true) and states that dryRun adds no mandatory step, which prevents the agent from over-sequencing.

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.