Skip to main content
Glama
@proof-holdings/mcp-server

@proof-holdings/mcp-server

Official

create_chat_id_discovery

Creates a Telegram chat ID discovery token with a deep link and QR code so users can reveal their chat ID for setting up approval channels.

Instructions

Create a Telegram chat ID discovery token. Returns a deep_link, qr_code (base64 PNG), and qr_text (UTF-8 text QR for terminal display). The user opens the link in Telegram, which reveals their chat ID for approval channel setup.

Agent usage: pass the response's deep_link to render_auth_link so the user can click or scan it. Never hand qr_text to a link renderer — it is that same link already rendered as QR art. Print it verbatim inside a fenced code block only when a real terminal needs the QR. Then poll poll_chat_id_discovery with the returned token until the chat_id appears. Use the discovered chat_id when creating an approval channel with a Telegram channel.

The user does not see tool results — most clients fold them away, render_auth_link's output included. Before you wait or poll, put what the user must act on into your own reply text: the link itself (not a sentence announcing it), the SMS text and number, or a note to check their inbox.

ACCESS: needs a Proof account. Set PROOF_API_KEY and restart this server, then call this tool again. start_login does NOT open this tool.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
tokenYes
qr_codeYesQR code data URL for the deep link
qr_textYesUTF-8 text representation of the QR code for terminal/agent display
deep_linkYes
expires_inYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "Chat ID discovery token and Telegram deeplink",
      +  "properties": {
      +    "deep_link": {
      +      "type": "string"
      +    },
      +    "expires_in": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "qr_code": {
      +      "description": "QR code data URL for the deep link",
      +      "type": "string"
      +    },
      +    "qr_text": {
      +      "description": "UTF-8 text representation of the QR code for terminal/agent display",
      +      "type": "string"
      +    },
      +    "token": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "token",
      +    "deep_link",
      +    "qr_code",
      +    "qr_text",
      +    "expires_in"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds substantial context beyond that: the API-key/restart requirement, the fact that start_login does not open this tool, the multi-step discovery lifecycle, and the critical client behavior that users do not see tool results. That last point is a genuine operational trait an agent could not infer from annotations.

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?

Front-loaded with purpose and return values, then a clearly labeled "Agent usage" block. The main flaw is the aside about "the SMS text and number," which is boilerplate from a multi-channel verification context and irrelevant to a Telegram QR flow; it dilutes an otherwise tight definition.

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?

Even though an output schema exists, the description summarizes the three return artifacts and, more importantly, describes the end-to-end choreography (render link, poll for token, use chat_id when creating an approval channel) plus the auth prerequisite. Nothing an agent needs to invoke and sequence this tool correctly is missing.

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?

The tool takes zero parameters, which is the baseline-4 case; there is nothing for the description to disambiguate. The description instead spends its words on the returned fields and the workflow, which is the correct use of space here.

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 ("Create a Telegram chat ID discovery token") and immediately enumerates the three artifacts returned: deep_link, qr_code (base64 PNG), qr_text. This is distinguishable from the sibling poll_chat_id_discovery, which is explicitly named as the follow-up step rather than the creation step.

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 explicit when-to-use and when-not-to-use rules in the flow: pass deep_link to render_auth_link, never hand qr_text to a link renderer, print qr_text verbatim in a fenced code block only when a real terminal needs the QR, then poll poll_chat_id_discovery until the chat_id appears. It also states the access prerequisite (PROOF_API_KEY, restart the server) and explicitly rules out start_login as a substitute.

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