Skip to main content
Glama
grammy-mcp
by louietyj

describeType

Read-only

Retrieves the full JSON Schema for a named Telegram type, including nested $refs, so you can inspect fields when other grammY tools only provide a type title.

Instructions

Full JSON Schema of a Telegram type that other tools only name in a title, e.g. InlineKeyboardMarkup. Nested types appear as $refs to look up the same way.

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": {
      "name": "<name>"
    },
    "name": "describeType"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesType name, e.g. InlineKeyboardMarkup

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. The description adds what annotations cannot: the return shape is a full JSON Schema, and nested types appear as `$refs` rather than being inlined, which materially affects how an agent consumes the result given no output schema exists.

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 sentences with no filler. The core purpose is front-loaded, and the second sentence adds only the one non-obvious behavioral fact about nested types.

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?

With no output schema and one fully documented parameter, the description covers what is needed: what comes back and how to handle `$refs`. It stops just short of saying whether the schema is verbatim from the Telegram spec or transformed, a minor gap for a read-only lookup.

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 `name` parameter is already documented with the same InlineKeyboardMarkup example, so the description adds no syntax or format detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: returns the 'Full JSON Schema of a Telegram type'. It also distinguishes itself from sibling tools by explaining they only name types in a `title`, which is exactly the gap this tool fills.

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

Usage Guidelines5/5

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

Gives an explicit trigger (when another tool's `title` names a type like InlineKeyboardMarkup) and follows through with chaining guidance for nested `$refs` that should be looked up the same way. Nothing is left to inference about when to reach for this tool.

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