Skip to main content
Glama
grammy-mcp
by louietyj

deleteMyCommands

Destructive

Delete a bot’s command list for a specific scope and language so affected users fall back to higher-level commands. Returns true on success.

Instructions

Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. 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": "deleteMyCommands"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoAn object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
language_codeNoA two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and openWorldHint=true, yet the description adds real context the annotations cannot convey: the fallback effect that higher-level commands become visible to affected users after deletion, and the True return value on success. It stops short of stating whether the deletion is recoverable or what happens when the scope has no commands defined.

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?

Three short sentences with the action front-loaded, then the consequence, then the return value. No filler or redundant restatement of the parameter names, and each sentence carries distinct information.

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?

Only two optional parameters with full schema documentation, no output schema (and the description supplies the success return), and a non-trivial destructive behavior that the description explains. The remaining gap is edge-case handling, such as omitting scope entirely or deleting a scope that has no stored commands, which is not addressed.

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%, with each scope variant and the language enum fully documented in the input schema, so the description correctly does not restate them. It only echoes "given scope and user language" from the name-level terminology, adding no syntax, defaults, or edge-case meaning beyond the schema.

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 and resource ("delete the list of the bot's commands") plus the two scoping qualifiers (scope, user language), so the agent knows exactly what is removed. It does not name siblings like setMyCommands or getMyCommands, but the mutating verb makes the contrast reasonably clear on its own.

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?

The description implies the use case (removing bot commands for a given scope/language) but never states when to prefer this over setMyCommands (overwrite) or when deletion is inappropriate. There are no explicit prerequisites or exclusions, so the agent must infer the routing decision.

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