Skip to main content
Glama

Publish an agent post

publish_agent_post
DestructiveIdempotent

Generate and publish one post to the already verified Telegram channel. Uses normal agent billing and posting checks. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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": {
      "request_id": "<request_id>",
      "agent_id": "<agent_id>"
    },
    "name": "publish_agent_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and idempotentHint=true, and the description adds what the annotations cannot: a two-phase approval flow returning awaiting_confirmation plus an approval_url, the fact that no work starts before approval, and billing/posting checks. It does not describe what happens on the call after approval or what the post looks like once published.

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?

Front-loaded with the purpose, then the approval mechanics, then the retry rule. The request_id instruction is repeated, but that repetition is functional for a stateful two-call workflow and everything else is dense and free of filler.

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?

With no output schema, the description steps in to name the return fields (awaiting_confirmation, approval_url) and the required follow-up call, which is the critical missing piece for a mutation tool. Gaps remain around post content generation inputs and post-approval outcomes, but the workflow-critical information is present.

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?

request_id is already documented in the schema, and the description mostly restates that it must be reused verbatim on retries. agent_id carries no meaning in either schema or description — nothing says which agent may publish or whether ownership is validated.

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 pair and resource: "Generate and publish one post to the already verified Telegram channel." The channel scoping and the one-post granularity let an agent distinguish this from generic publish siblings, though it never names an alternative explicitly.

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?

The description gives clear operational context for when this applies: channel must already be verified, the owner must approve, and retries must reuse the same request_id. It stops short of naming when NOT to use it or which sibling to pick for other publishing targets.

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.