Skip to main content
Glama
grammy-mcp
by louietyj

getChatMenuButton

Read-only

Retrieve the current menu button for a private chat or the bot's default, so you can inspect the configured Telegram menu before changing or displaying it.

Instructions

Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getChatMenuButton"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idNoUnique identifier for the target private chat. If not specified, the bot's default menu button will be returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds that it 'Returns MenuButton on success', which is the only behavioral detail beyond annotations, and it does not explain failure modes or what the default button is when unset.

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?

Two short sentences, front-loaded with the action and followed by the return value. No filler or redundancy.

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 single-optional-parameter read tool whose annotations carry the safety profile and whose schema documents the parameter, the description covers purpose, scope, and return type. The only minor gap is that 'MenuButton' is left unexplained, but that is a well-known API type name.

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 coverage is 100% and the single chat_id parameter is already fully documented in the schema, including the 'default menu button' fallback. The description restates that same semantics rather than adding new meaning such as format or private-chat-only constraints beyond what the schema says.

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 uses a specific verb+resource ('get the current value of the bot's menu button') and scopes it to two cases: a private chat, or the default menu button. It is instantly distinguishable from setChatMenuButton, though it does not name that sibling explicitly.

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 context is implied by 'in a private chat, or the default menu button' — the agent learns the valid scope of the call. There is no explicit when-not guidance or reference to the mutating counterpart setChatMenuButton, so routing is left to inference.

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