Skip to main content
Glama

TgPay Crypto Merchant API

createWithdrawalLink

A link that opens the wallet's Withdraw form for the PERSON who taps it, with your address (and optionally network, amount, memo) filled in — they confirm the withdrawal from their own balance. No app money moves. 403 withdrawal_link_unavailable while the feature is off.

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": {
      "asset": "<asset>",
      "address": "<address>"
    },
    "name": "createWithdrawalLink"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoMemo / tag, on networks that have one.
assetYesAsset code.
amountNoDecimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Optional.
addressYesThe address to receive at.
networkNoNetwork code; needed only when the address fits several.
expires_inNoSeconds the link works (60..2592000, default 86400).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this is a non-destructive write. The description adds genuinely useful behavior — that no application funds move and that a 403 with `withdrawal_link_unavailable` occurs when the feature is disabled — but says nothing about authorization requirements or what the created artifact/response contains.

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, front-loaded with the core identity of the tool, then the crucial "no app money moves" caveat and the failure mode. No filler and nothing buried.

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 six-parameter tool with no output schema, the description covers the conceptual model, the safety implication, and one error path. The main residual gap is the return value — the link URL and its expiry are only implied by the opening phrase, not stated.

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 coverage is 100%, so the baseline is 3, and the description modestly reinforces which fields are optional (network, amount, memo) while noting the recipient confirms the amount themselves. It does not add syntax the schema lacks, such as the expiry semantics, so it sits slightly above baseline rather than well above.

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 (create) and resource (a withdrawal link) and then explains the mechanic precisely: the link opens the wallet's Withdraw form for the person who taps it, prefilled with your address, and they confirm from their own balance. The clause "No app money moves" cleanly separates it from a real payout tool, so an agent can distinguish it from getWithdrawalLinks and deleteWithdrawalLink without opening a schema.

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 description gives a clear situational picture — you are handing withdrawal initiation to the recipient rather than moving funds yourself — and discloses the 403 `withdrawal_link_unavailable` condition while the feature is off. It stops short of explicitly naming alternatives (e.g. the direct withdrawal flow) or stating exclusions such as when a plain address would be preferable.

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