Skip to main content
Glama

TgPay Crypto Merchant API

connect

Start token issuance WITHOUT the Mini App UI: creates a merchant-app request and returns a t.me approve link plus a poll_secret. Show the link to the human — they approve with one button ("Create app and issue token") in the @tgpaycryptobot bot — then call connect_status with the poll_secret. Use only when no API token is configured yet.

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

Input Schema

NameRequiredDescriptionDefault
app_nameYesMerchant app name shown to the approving human, 1-64 chars (e.g. the project/bot name).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only say this is a non-read-only, non-destructive mutation. The description adds what the annotations do not: a human must approve in @tgpaycryptobot by pressing a button, and the returned poll_secret must be used to continue. This matters because the agent could incorrectly assume the call finishes the job.

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, and the description puts the key distinction first: it works without the Mini App UI. The order of operations then follows naturally, with the precondition last and no wasted words.

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 one-parameter mutation with no output schema, the description covers everything an agent needs: the precondition, what the tool creates, what it returns, the required human step, and the follow-up call. Nothing essential is missing.

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?

There is only one parameter, and the schema fully describes it (1-64 chars, shown to the approving human). The description repeats the general idea of a merchant-app request but adds no further detail about the field, so a baseline 3 is correct when the schema carries all the meaning.

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?

The description uses a specific verb and resource: it creates a merchant-app request, then returns an approve link plus a poll_secret. It also sets itself apart up front from the Mini App UI flow and from connect_status, so an agent does not need the schema to tell which tool this is.

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?

The description names a clear precondition ('Use only when no API token is configured yet') and a clear next step ('then call connect_status with the poll_secret'). It also describes the human step in the middle, so the agent knows the full approval loop.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources