Skip to main content
Glama
grammy-mcp
by louietyj

approveSuggestedPost

Approves a suggested post in a direct messages chat for publication, with an optional future send date; requires the bot to have can_post_messages rights in the channel.

Instructions

Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns True on success.

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": {
      "chat_id": "<chat_id>",
      "message_id": "<message_id>"
    },
    "name": "approveSuggestedPost"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target direct messages chat
send_dateNoPoint in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future.
message_idYesIdentifier of a suggested post message to approve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world mutation, so the description's job is to add context -- and it does, disclosing the required admin right and that the call returns True on success. It does not cover failure behavior or whether an approval can be undone, and the channel-admin requirement sits oddly against a 'direct messages chat' target, which an agent may find confusing.

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?

Three short sentences, front-loaded with the action and followed by the prerequisite and return value. The 'Returns True on success' line is mildly redundant with the annotations but still informative; nothing is bloated.

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 3-parameter mutation with no output schema and full schema coverage, the definition supplies the key permission requirement and a success signal. Minor gaps remain around error conditions and the send_date interaction, but an agent has enough to invoke it correctly.

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 chat_id, message_id and the optional send_date (with its 30-day horizon) are already documented in the schema. The description adds no parameter-level meaning of its own, so the baseline 3 applies.

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?

The description names a specific verb and resource -- approve a suggested post -- and scopes it to a direct messages chat, which cleanly separates it from declineSuggestedPost. It stops short of explicitly naming the sibling, but the action is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied by 'Use this method to approve...', which restates the purpose rather than giving selection criteria. The one genuine guideline is the prerequisite that the bot needs the 'can_post_messages' admin right in the corresponding channel, but no exclusion (e.g., when to decline instead) is offered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools