Skip to main content
Glama
grammy-mcp
by louietyj

setChatMenuButton

Destructive

Change a private chat's menu button or the bot's default menu button to open commands, launch a Web App, or reset to default. Returns true on success.

Instructions

Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True 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": "setChatMenuButton"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idNoUnique identifier for the target private chat. If not specified, the bot's default menu button will be changed.
menu_buttonNoAn object for the bot's new menu button. Defaults to MenuButtonDefault.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the mutation risk is flagged structurally. The description usefully adds that it returns True on success, but it never explains that the call overwrites any existing menu button setting, which is the key destructive consequence an agent should understand.

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?

Two short sentences, front-loaded with the action and scope, with the return value appended. No filler, though the second sentence is minimal boilerplate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter setter with full annotation coverage and complete schema descriptions, this is largely adequate. The gaps are behavioral rather than structural: it doesn't say the change replaces existing button configuration or discuss any rate/permission constraints, and there is no output schema beyond the stated True return.

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 the schema already explains chat_id's default behavior and the menu_button union (commands, web app, default). The description only echoes that chat_id scopes to a private chat and its absence targets the default, adding little beyond the schema — correct baseline of 3.

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 ('change the bot's menu button') plus the two scopes it applies to: a private chat or the bot-wide default. This is enough to distinguish it from read-oriented siblings like getChatMenuButton, although it never names 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 rather than stated: it applies to private chats or the default button, which hints at when you would call it. There is no explicit 'use this instead of X' guidance and no mention of prerequisites such as bot ownership or the fact that reading the current button requires getChatMenuButton.

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