Skip to main content
Glama

TgPay Crypto Merchant API

getExchangeEstimate

Read-only

Preview an exchange of the app balance at the current rate; moves nothing.

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_from": "<asset_from>",
      "asset_to": "<asset_to>"
    },
    "name": "getExchangeEstimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoAmount of asset_from to spend (or pass amount_to).
asset_toYesAsset to buy.
amount_toNoExact amount of asset_to to receive (instead of amount); amount_from in the answer is what it costs.
asset_fromYesAsset to sell.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is structured data; "moves nothing" largely restates it. The description does add that pricing is at the current rate (i.e., not a locked quote), which is genuinely useful context, but it omits auth requirements, quote expiry, and error behavior for unsupported pairs.

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?

One short sentence with the key non-mutating guarantee front-loaded at the end of the clause; no filler or repetition. Every phrase carries information.

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 4-parameter, fully documented read-only estimate with no output schema, the definition covers purpose, rate basis, and non-mutation adequately. The remaining gap is the return shape (which amount fields come back and in what units), which matters for an estimate tool but is a modest omission.

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 baseline is 3; the description adds a small but real clarification by framing the call as selling from the app balance, which tells the agent asset_from is debited from balance rather than an arbitrary wallet. It adds nothing about the amount/amount_to mutual exclusivity beyond 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?

"Preview an exchange of the app balance at the current rate" names a concrete verb (preview) and resource (exchange of app balance), clearly setting it apart from state-changing siblings like getExchanges or getWithdrawals. It stops short of naming the alternative estimation/rate tools, so differentiation is inferred rather than explicit.

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

Usage Guidelines3/5

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

The word "Preview" plus "moves nothing" implies this is the pre-flight check before a real exchange, which is useful implied guidance. There is no explicit when-to-use/when-not statement, no mention of pairing with getExchangeRates or an actual exchange call, and no stated prerequisites.

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