Skip to main content
Glama
grammy-mcp
by louietyj

setPassportDataErrors

Destructive

Informs a Telegram user that submitted Passport elements contain errors, preventing resubmission until fixed; include error details so the user can correct them.

Instructions

Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.

Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.

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": {
      "user_id": "<user_id>",
      "errors": "<errors>"
    },
    "name": "setPassportDataErrors"
  }
}

Input Schema

NameRequiredDescriptionDefault
errorsYesAn Array describing the errors
user_idYesUser identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and openWorldHint=true, so the description's extra point is that the user cannot re-submit Passport data until the flagged field content changes. That blocking side effect is the key consequence, and the description states it plainly. It still does not cover permission requirements or what happens if the user_id is unknown.

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 paragraphs, front-loaded with the purpose and then the usage rule and examples. Every sentence contributes. The parenthetical about the field content changing is slightly dense but carries important meaning.

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

Completeness5/5

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

For a two-parameter mutation tool with a fully documented, nested schema and no output schema, the description covers purpose, when to use it, side effects, and the success return value. An agent has what it needs to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the errors array and its nine variant types are documented in the schema. The description adds practical guidance by telling callers to include enough detail in the error message for the user to correct the problem. That is real added meaning beyond the schema, though field-level mapping is left to 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?

The description states a specific verb and resource: it informs a user that submitted Telegram Passport elements contain errors. That is far more than a restatement of the name. It does not name an alternative, but the sibling list contains no comparable Passport tools, so the omission costs little.

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

Usage Guidelines4/5

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

The second paragraph gives explicit conditions for use plus concrete examples: invalid birthday, blurry document, evidence of tampering. That is good when-to-use guidance. It stops short of telling the agent when not to call this tool, such as what to do instead if the errors are not the user's fault.

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