Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BT_MCP_LOGNoLog level: `DEBUG`, `INFO`, `WARNING`, `ERROR` or `CRITICAL` (or Python's other names, `NOTSET`, `WARN`, `FATAL`), in any case. Logs go to stderr. Default is `WARNING`.WARNING
BT_MCP_ARCHIVENoArchive endpoint used for historical reads. Default is `archive`.archive
BT_MCP_NETWORKNoHead endpoint: `finney`, `test`, `local`, or a `ws://` / `wss://` URL. Default is `finney`.finney
BT_MCP_MAX_CHARSNoCap on one result. Larger results are shortened and the cut is noted under `truncated`. Default is `30000`; must be a whole number of at least 2000.30000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only access to the Bittensor (TAO) chain. Start with the curated tools (subnets, subnet, metagraph, neuron, account, hotkey); for anything else, list_reads -> describe_read -> read. Every tool takes an optional block (absolute, or negative = relative to head; 7200 blocks ~ 1 day) and reports the block it read at. Amounts in the SDK's Balance type come out as plain numbers in TAO, or {"alpha": x, "netuid": n} for alpha. Plain integers from read (and fields the curated tools mark raw) are chain units: rao = 1e-9 TAO/alpha, u16 fractions /65535, U64F64 /2**64; describe_read documents each read's units. The chain's TAO-flow EMA (subnets' tao_flow_per_day, the subnet_tao_flows read) can be months old: results carry its age under tao_flow_ema. For current net TAO flow use subnets(sort_by="net_flow", flow_window=N): stakes minus unstakes over the last N blocks, a total, not per day. No wallet access, no transactions.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
chain_statusA

Current chain head, finalized block, runtime spec version, block time and chain timestamp.

list_readsA

The SDK's catalog of named read-only chain queries (about 100), grouped by category, with their parameters. Use describe_read for one read's full documentation, then read to run it.

describe_readA

Full documentation of one named read: description, parameter docs, units and docs URL.

readA

Run any named read from the SDK catalog (see list_reads / describe_read). Balance amounts are converted (TAO number, or {"alpha", "netuid"}); plain integers are raw chain units (rao = 1e-9, u16 /65535, U64F64 /2**64) as describe_read documents. Large results are cut to the first limit items and to the size cap; prefer the curated tools for metagraph-sized data.

subnetsA

Every subnet as one table (columns + rows): name, token symbol, alpha spot price (TAO per alpha), registration burn (TAO), neuron count, tempo, the chain's net TAO flow EMA (TAO per day; negative = net outflow), and the pool: pool_tao and pool_alpha are its reserves (the subnet tool's tao_in and alpha_in), alpha_out is the subnet's alpha held outside the pool. sort_by="pool" ranks by pool_tao; root (netuid 0) has no pool, so it comes last. The chain updates that EMA lazily: tao_flow_ema in the result gives its last-update block and age, and warns when it is stale (on spec 493 it has not moved since block 8,466,530), so check it before reading tao_flow_per_day as current.

With flow_window (or sort_by="net_flow"), it also measures the real net flow over a window of blocks: the change in the chain's stake-minus-unstake counter between the window's two ends, as a total in TAO, not per day. A subnet re-registered inside the window, or whose counter may have been reset there, gets null and a reason under net_flow.excluded.

subnetA

One subnet's state: identity, owner, pool (tao_in TAO, alpha_in/alpha_out), per-block emission, spot and moving price, registration (burn TAO, limits, immunity), weights settings, epoch position, all hyperparameters (raw encodings), and neuron counts. The result's "units" field says which fields are converted and which are raw chain integers.

metagraphA

A subnet's neurons as a table (columns + rows), sorted (descending except uid/registered) and paged. Per neuron: uid, hotkey, coldkey, active, validator_permit, incentive / dividends / consensus (0..1), emission (alpha per epoch), alpha/tao/total stake, registration block, last weight update; optionally axon ip:port.

neuronA

One neuron on a subnet by uid or hotkey, with its rank by incentive and by stake among all neurons.

accountA

A coldkey's position: free TAO balance, every stake position (hotkey, subnet, alpha), the stake marked to TAO at spot prices, the hotkeys it owns, and its on-chain identity.

hotkeyC

A hotkey's owner coldkey, the subnets it is registered on (with its uid on each), delegate status and take, and identity.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 10 tools

Disambiguation4/5

Most tools map to a distinct resource (account, hotkey, subnet, subnets, metagraph, neuron) or a distinct step in the read workflow (list_reads → describe_read → read). The only real overlap is the generic `read` versus the curated tools, but the description explicitly tells the agent to prefer curated tools for large data, which resolves the boundary. The singular/plural pair `subnet`/`subnets` is distinguishable but easy to misclick on.

Naming Consistency3/5

The set mixes verb_noun names (list_reads, describe_read, chain_status) with bare nouns (account, hotkey, read, subnets, subnet, metagraph, neuron). The noun names are resource-oriented and readable, and the read-workflow trio is consistent within itself, but `subnet` vs `subnets` and the bare verb `read` break any single predictable pattern.

Tool Count5/5

Ten tools is well-scoped, and the ~100 SDK reads are collapsed into a three-tool gateway (list_reads / describe_read / read) instead of exploding the surface. Every tool corresponds to a real Bittensor concept an agent would need.

Completeness4/5

The curated surface covers the main read paths (chain head, account/stake positions, hotkeys, subnet state, metagraph, single neuron) and the generic `read` escape hatch prevents dead ends for niche queries. Gaps remain around historical/block-scoped data (extrinsics, past events, stake-flow history) and there is no write/staking surface, though the server appears intentionally read-only.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues