Skip to main content
Glama
iran-crypto-mcp

iran-crypto-mcp

by sepehr071

Best Deal For An Amount

ic_best_deal
Read-onlyIdempotent

Ranks exchanges by actual execution outcome for a specified buy or sell amount, walking order books to estimate slippage and coins received or Toman/USDT proceeds.

Instructions

Rank every exchange by what a buy or sell of a given size actually gets, with order-book slippage.

Order books are walked level by level (filled_pct < 100: book too thin); brokers fill at their own price; source: listed_price (Tetherland, Balinex) is indicative, ranked last. receive is coins for a buy, Toman/USDT for a sell. Fees are not deducted (see ic_fees). A snapshot, not a quote.

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": {
      "coin": "<coin>",
      "side": "<side>",
      "amount": "<amount>"
    },
    "name": "ic_best_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesCoin symbol, e.g. 'BTC', 'USDT'
sideYesBuy or sell the coin
quoteNo'IRT' = Toman market, 'USDT' = Tether marketIRT
amountYesbuy: Toman (or USDT) to spend, e.g. 50000000. sell: coins to sell, e.g. 0.2

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.0
    • changedInput schema / properties / amount / description
      Previous value: -"buy: how much Toman (or USDT) to spend, e.g. 50000000. sell: how many coins to sell, e.g. 0.2"New value: +"buy: Toman (or USDT) to spend, e.g. 50000000. sell: coins to sell, e.g. 0.2"
    • changedInput schema / properties / coin / description
      Previous value: -"Coin symbol, e.g. 'BTC', 'ETH', 'USDT' (Tether in Toman), 'TON'"New value: +"Coin symbol, e.g. 'BTC', 'USDT'"
    • changedInput schema / properties / quote / description
      Previous value: -"Quote currency: 'IRT' = Toman market (default), 'USDT' = Tether market"New value: +"'IRT' = Toman market, 'USDT' = Tether market"
    • changedInput schema / properties / side / description
      Previous value: -"'buy' the coin or 'sell' it"New value: +"Buy or sell the coin"
  2. Addedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses execution-relevant behavior: order books are walked level by level, filled_pct < 100 signals a book too thin, brokers fill at their own price, and listed_price sources (Tetherland, Balinex) are indicative and ranked last. It also warns that fees are excluded, which is exactly the kind of caveat an agent needs before reporting a best price.

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?

The purpose leads in the first sentence and mechanics follow, with no filler. The back half is telegraphic and jargon-heavy ('filled_pct < 100: book too thin'), which is efficient for an informed agent but slightly compressed.

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?

With no output schema, the description carries the burden of explaining return values and does so for the key fields (receive, filled_pct, source). It is nearly complete, though it does not state whether results are truncated to a top-N or how many venues are returned.

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?

Schema coverage is 100%, with coin, side, quote and amount all documented including units per side, so the description adds little parameter-level meaning. The one additive note is that amount is denominated in Toman/USDT for buys, which the schema already covers. Baseline 3 applies.

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 — 'rank every exchange by what a buy or sell of a given size actually gets' — including the slippage dimension. This clearly separates it from siblings like ic_get_orderbook (single venue depth) and ic_compare_price (indicative rates).

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?

Clearly implies the use case (sizing a real trade across venues) and routes the agent to ic_fees for fee-adjusted comparison, plus distinguishes itself from a firm quote by calling itself 'a snapshot, not a quote'. It does not explicitly say when to prefer ic_compare_price or ic_get_orderbook instead, so it falls short of full alternative routing.

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