Skip to main content
Glama

metagraph

Read-only

Retrieve a subnet’s neurons as a sorted, paged table with stake, incentive, emission, and registration data; filter by coldkey or role and optionally include axon endpoints or read at a past block.

Instructions

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.

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": {
      "netuid": "<netuid>"
    },
    "name": "metagraph"
  }
}

Input Schema

NameRequiredDescriptionDefault
blockNoBlock to read at: absolute number, or negative = blocks before head (-7200 ~ 1 day). Omit for the current head.
limitNo
netuidYes
offsetNo
coldkeyNoOnly neurons owned by this coldkey (SS58)
sort_byNoincentive
miners_onlyNoExclude neurons holding a validator permit
include_axonsNoAdd each axon's ip:port
validators_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint. Beyond that, the description discloses meaningful behavior: sort order defaults (descending except uid/registered) and paging, plus a full list of returned columns and that axons are optional. That is real context not present in the structured fields.

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?

A single dense, telegraphed sentence that front-loads the table/paging concept before enumerating columns. It is packed but every clause carries information; the telegraphic style is slightly terse but efficient.

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 9 parameters and no output schema, the description carries the return-shape burden and does so by listing the columns returned. It is nearly complete for the tool's complexity, missing only explicit filter/usage guidance.

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 only 44%, and the description compensates partially by explaining sort/paging behavior and the per-neuron fields. However it does not clarify limit/offset bounds, netuid meaning, or the filters (miners_only/validators_only) that lack schema descriptions, leaving gaps for the low-coverage parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and scope: 'A subnet's neurons as a table (columns + rows)'. This is clearly distinguishable from a single-neuron reader like 'neuron' or a 'subnets' lister, though it doesn't name any sibling explicitly.

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?

Usage is implied by the scope ('a subnet's neurons', 'optionally axon'), but there is no explicit when-to-use or when-not guidance versus siblings like 'neuron' or 'account'. The agent must infer that this is the bulk-enumeration tool.

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