Skip to main content
Glama
iran-crypto-mcp

iran-crypto-mcp

by sepehr071

Arbitrage Scanner

ic_arbitrage
Read-onlyIdempotent

Scan Iranian crypto exchanges to find price gaps for a coin, then buy on the cheapest market and sell on the dearest. Filter by minimum gap, exchange count, and executable bid/ask prices.

Instructions

Scan every coin on every exchange for the biggest price gaps: buy where it is cheapest, sell where it is dearest.

Buy legs use the ask, sell legs the bid; basis: last means only a last price, so the gap may not be executable. Gaps over 15% are dropped (stale markets or same-symbol tokens). Fees and network costs are not included.

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

Input Schema

NameRequiredDescriptionDefault
limitNoOpportunities to return
quoteNo'IRT' = Toman market, 'USDT' = Tether marketIRT
min_gap_pctNoSmallest gap, percent
min_exchangesNoOnly coins listed on at least this many exchanges
executable_onlyNoOnly real bid/ask prices. False also uses last-price-only exchanges

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / min_exchanges / maximum
      Previous value: -12New value: +13
  2. Changed5 schema fields changedv0.4.0
    • changedInput schema / properties / executable_only / description
      Previous value: -"Only real bid/ask prices (default). False also uses exchanges that publish just a last price"New value: +"Only real bid/ask prices. False also uses last-price-only exchanges"
    • changedInput schema / properties / limit / description
      Previous value: -"Opportunities to return (1-25)"New value: +"Opportunities to return"
    • changedInput schema / properties / min_exchanges / description
      Previous value: -"Only coins listed on at least this many exchanges (filters obscure tokens)"New value: +"Only coins listed on at least this many exchanges"
    • changedInput schema / properties / min_gap_pct / description
      Previous value: -"Smallest gap to report, in percent"New value: +"Smallest gap, percent"
    • changedInput schema / properties / quote / description
      Previous value: -"Quote currency: 'IRT' = Toman market (default), 'USDT' = Tether market"New value: +"'IRT' = Toman market, 'USDT' = Tether market"
  3. Addedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real substance: ask/bid leg semantics, the `basis: last` executability caveat, the 15% gap cap for stale markets, and the exclusion of fees and network costs. It stops short of describing the result shape or ordering guarantees.

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 paragraphs, front-loaded with the core action, then the pricing mechanics, then the caveats. Every sentence carries information an agent needs; nothing is redundant.

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 does explain what an 'opportunity' means conceptually (gap, executability, fee exclusion), which covers the essentials. It omits the actual returned fields and ordering, a minor gap for a read-only scanner.

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 baseline is 3, but the description adds meaning beyond the schema by tying `executable_only` to the last-price caveat and explaining why gaps above 15% are filtered (which contextualizes the min_gap_pct maximum). It does not touch limit or min_exchanges semantics.

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 ('Scan every coin on every exchange for the biggest price gaps') plus the trading intent (buy cheapest, sell dearest). This clearly separates it from siblings like ic_compare_price and ic_best_deal, which operate on narrower scopes.

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?

Explains the mechanics of the scan but never says when to prefer it over ic_best_deal, ic_compare_price, or ic_top_movers. Usage is implied by the description rather than routed explicitly, leaving the agent to infer the choice.

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