MCP tool · read 2 credits

midgard_pool_stats_get

Proxy GET /v2/pool/{asset}/stats on Midgard. Returns swap volumes, fees, and historical aggregates for a pool. Pass-through response.

JSON-RPC call

Paste this body into your MCP client's `tools/call` request. The `id` field is the JSON-RPC message correlator (caller-chosen, not a record identifier — set it to anything; the server echoes it back).

tools/call body
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "midgard_pool_stats_get",
    "arguments": {
      "asset": "<asset>"
    }
  }
}

Arguments

Name Type Required Description
asset string required Pool asset, e.g. "BTC.BTC".

Copy-paste prompt samples

Drop one of these into Claude Code, n8n, or any MCP client. Your AI agent should pick this tool to answer.

Get the 24h Midgard pool stats for BTC.BTC.
How much volume has the THOR.RUNE / ETH.ETH pool seen?
Show me swap counts, fees, and average slip for the BTC.BTC pool.

Example response

Illustrative shape — actual values vary.

response shape
{
  "asset": "BTC.BTC",
  "swapCount": "1234",
  "toAssetVolume": "1500000000",
  "toRuneVolume": "1500000000",
  "totalFees": "4500000",
  "averageSlip": "21"
}

Possible errors

VALIDATION
Returned when the arguments fail the typed schema.
NOT_FOUND
Returned when the requested resource does not exist in our DB.
RATE_LIMIT
Returned when your token's credit budget is exhausted.
UPSTREAM
Returned when the upstream HTTP call fails (relayer tools only).