Skip to main content
Glama
iran-crypto-mcp

iran-crypto-mcp

by sepehr071

Get Order Book

ic_get_orderbook
Read-onlyIdempotent

Retrieves the top bids and asks for a coin on a specified exchange, including the spread and best-first levels for order book analysis.

Instructions

Get the top bids and asks of one coin's order book on one exchange, with the spread.

Levels are [price, quantity in coin], best first. Not on the brokers (Aban Tether, Kifpool, OK-EX, Tetherland) nor Balinex.

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": {
      "exchange": "<exchange>",
      "coin": "<coin>"
    },
    "name": "ic_get_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinYesCoin symbol, e.g. 'BTC', 'USDT'
depthNoLevels per side
quoteNo'IRT' = Toman market, 'USDT' = Tether marketIRT
exchangeYesExchange id, e.g. 'nobitex'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / exchange / enum
      Previous value: -[
      -  "nobitex",
      -  "wallex",
      -  "bitpin",
      -  "ramzinex",
      -  "tabdeal",
      -  "ompfinex",
      -  "exir",
      -  "abantether",
      -  "kifpool",
      -  "okex",
      -  "tetherland",
      -  "bit24"
      -]New value: +[
      +  "nobitex",
      +  "wallex",
      +  "bitpin",
      +  "ramzinex",
      +  "tabdeal",
      +  "ompfinex",
      +  "exir",
      +  "abantether",
      +  "kifpool",
      +  "okex",
      +  "tetherland",
      +  "bit24",
      +  "balinex"
      +]
  2. Changed4 schema fields changedv0.4.0
    • 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 / depth / description
      Previous value: -"Levels per side (1-20)"New value: +"Levels per side"
    • changedInput schema / properties / exchange / description
      Previous value: -"Exchange id from ic_list_exchanges, e.g. 'nobitex'"New value: +"Exchange id, e.g. 'nobitex'"
    • 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. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / exchange / enum
      Previous value: -[
      -  "nobitex",
      -  "wallex",
      -  "bitpin",
      -  "ramzinex",
      -  "tabdeal",
      -  "ompfinex",
      -  "exir"
      -]New value: +[
      +  "nobitex",
      +  "wallex",
      +  "bitpin",
      +  "ramzinex",
      +  "tabdeal",
      +  "ompfinex",
      +  "exir",
      +  "abantether",
      +  "kifpool",
      +  "okex",
      +  "tetherland",
      +  "bit24"
      +]
  4. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive semantics, so the description only needs to add shape. It does that well: it discloses the return format ('Levels are [price, quantity in coin], best first') and that a spread is included, which matters because there is no output schema. It adds nothing about depth limits or empty-book behavior, keeping it short of a 5.

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?

Two short sentences, front-loaded with the core operation, then the return format. Nothing is padded, though the exclusion list reads as an afterthought rather than a deliberate scope rule placed near the parameters it affects.

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?

With no output schema, the description carries the return-shape burden and does so by naming the level tuple and the spread. Combined with full schema parameter coverage and annotations that establish safety, an agent has everything needed to call this correctly; only the enum/exclusion discrepancy is a wrinkle.

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% and the enum/defaults already explain coin, depth, quote, and exchange, so the baseline of 3 applies and the description adds essentially nothing about depth or quote. Worse, the claim that the tool does not cover Aban Tether, Kifpool, OK-EX, Tetherland, or Balinex conflicts with an exchange enum that lists abantether, kifpool, okex, tetherland, and balinex as valid values, leaving the agent unsure which is authoritative.

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 ('Get the top bids and asks of one coin's order book on one exchange'), plus the added spread output. This clearly separates it from snapshot-style siblings such as ic_get_ticker and ic_compare_price, which return a single price rather than a book.

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 description gives a coverage boundary (not on Aban Tether, Kifpool, OK-EX, Tetherland, Balinex) but never says when to pick this over ic_best_deal, ic_arbitrage, or ic_compare_price. Usage is implied by the resource name rather than stated, so an agent has 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.