Skip to main content
Glama
grammy-mcp
by louietyj

getMyCommands

Read-only

Retrieves the bot's current command list for a specified scope and user language, returning BotCommand objects or an empty list when none are configured.

Instructions

Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned.

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": "getMyCommands"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoAn object, describing scope of users. Defaults to BotCommandScopeDefault.
language_codeNoA two-letter ISO 639-1 language code or an empty string

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 readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond them by disclosing the return shape (Array of BotCommand objects) and the empty-state behavior, which matters because there is no output schema. It stops short of noting any permission or bot-ownership requirements, but for a read-only getter that is a minor gap.

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 immediately by the return contract and empty case. Every sentence earns its place, though the "Use this method to" opener is inherited boilerplate rather than informative.

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 two-optional-parameter read tool with no output schema, the description covers the action, the filter concepts, and the return value including the empty case. What remains unsaid — the default scope and any auth prerequisites — is either in the schema or unsurprising for a bot-owner getter.

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%, with per-variant scope descriptions and a full language code enum, so the schema carries nearly all parameter meaning. The description names the two concepts (scope, user language) but adds no syntax, default, or format detail beyond what the schema already says, so 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?

"Get the current list of the bot's commands" states a specific verb and resource, and the scope/language qualifiers narrow it precisely. It doesn't explicitly name setMyCommands/deleteMyCommands as the alternatives, but the get-vs-set/delete distinction is unambiguous from the verb alone.

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 implied rather than stated: the agent can infer this is the read side of command management, and "if commands aren't set, an empty list is returned" gives a useful signal for probing state. There is no explicit when-to-use guidance, no mention that scope defaults to BotCommandScopeDefault (that fact lives only in the schema), and no stated alternative.

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