Subtensor MCP is an MCP server published by com.subtensor, hosted at subtensor.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 7 tools, including subtensor_search, subtensor_lookup, subtensor_list, subtensor_explore, subtensor_explain.
Subtensor blockchain reference — events, calls, storage, constants, errors for all 28 active pallets
1 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Search across all Subtensor pallets, events, calls, storage, constants, and errors by keyword.
| Parameter | Type | Description |
|---|---|---|
| type | string | Filter by item type (default: all) |
| limit | number | Max results per page (default: 10, max: 50) |
| query * | string | Search query (e.g., 'stake', 'neuron', 'emission') |
| cursor | string | Pagination cursor from previous response |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| status | string | Filter by item status (default: 'active') |
{
"name": "subtensor_search",
"title": "Search Subtensor",
"description": "Search across all Subtensor pallets, events, calls, storage, constants, and errors by keyword.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"type": {
"enum": [
"all",
"event",
"call",
"storage",
"constant",
"error",
"type",
"runtime-api",
"mechanism",
"workflow",
"hyperparameter",
"learn",
"glossary",
"runtime-error"
],
"type": "string",
"description": "Filter by item type (default: all)"
},
"limit": {
"type": "number",
"description": "Max results per page (default: 10, max: 50)"
},
"query": {
"type": "string",
"description": "Search query (e.g., 'stake', 'neuron', 'emission')"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"status": {
"enum": [
"active",
"removed",
"all"
],
"type": "string",
"description": "Filter by item status (default: 'active')"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"query",
"status_filter",
"total",
"results"
],
"properties": {
"query": {
"type": "string"
},
"total": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"pallet",
"name",
"score"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"score": {
"type": "number"
},
"pallet": {
"type": "string"
},
"status": {
"type": "string"
},
"detail_url": {
"type": "string"
},
"description": {
"type": "string"
}
},
"additionalProperties": true
}
},
"nextCursor": {
"type": "string"
},
"_removed_hint": {
"type": "string"
},
"status_filter": {
"type": "string"
},
"removed_hidden": {
"type": "number"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Get detailed info about a specific pallet, event, call, storage item, constant, error, SCALE type, RPC method, protocol account, or EVM precompile. Accepts URN identifiers with optional #field.path drilling.
| Parameter | Type | Description |
|---|---|---|
| sub | ["string","number"] | For type="account": derive a sub-account. A number is a netuid or crowdloan id; a string is an 8-byte tag such as "beta/esc". Index 0 collapses onto the base address. |
| urn | string | URN identifier (e.g., 'subtensor:event:SubtensorModule.StakeAdded', 'subtensor:storage:System.Account#data.free', 'subtensor:api:SwapRuntimeApi.sim_swap_tao_for_alpha', 'subtensor:account:SubtensorModule.SubtensorPalletId#64', 'subtensor:precompile:StakingV2'). `subtensor:runtime_api:...` is accepte… |
| name | ["string","number"] | Item name (e.g., 'SubtensorModule', 'StakeAdded', 'add_stake', 'AccountId32', 'pruning', 'pow-faucet') or type ID number. For type="account": the declaring key ('SubtensorModule.SubtensorPalletId'). For type="precompile": a name ('StakingV2') or 0x address. |
| type | string | What kind of item to look up |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| pallet | string | Pallet name — required for event/call/storage/constant/error lookups (e.g., 'SubtensorModule') |
| address | string | For type="account": an SS58 address to identify. Returns which protocol account it is, including the sub-index, or reports that it is an ordinary wallet. |
| include | string | For pallet lookup: filter to a specific item type with descriptions |
| language | string | Field name casing for your language. TypeScript shows camelCase (tickLow), others show snake_case (tick_low). Overrides session preference. |
| preferences | string | Preferences handle from subtensor_preferences(action="set"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle. |
| include_history | boolean | Include full argument signatures for each version range (events/calls only) |
| include_removed | boolean | Include removed/historical items (default: false) |
{
"name": "subtensor_lookup",
"title": "Look up Subtensor item",
"description": "Get detailed info about a specific pallet, event, call, storage item, constant, error, SCALE type, RPC method, protocol account, or EVM precompile. Accepts URN identifiers with optional #field.path drilling.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"sub": {
"type": [
"string",
"number"
],
"description": "For type=\"account\": derive a sub-account. A number is a netuid or crowdloan id; a string is an 8-byte tag such as \"beta/esc\". Index 0 collapses onto the base address."
},
"urn": {
"type": "string",
"description": "URN identifier (e.g., 'subtensor:event:SubtensorModule.StakeAdded', 'subtensor:storage:System.Account#data.free', 'subtensor:api:SwapRuntimeApi.sim_swap_tao_for_alpha', 'subtensor:account:SubtensorModule.SubtensorPalletId#64', 'subtensor:precompile:StakingV2'). `subtensor:runtime_api:...` is accepted as an alias for `subtensor:api:...`. Supports field-path drilling with # for event/call/storage/type items (for account items, #fragment is a sub-index instead). Alternative to type+pallet+name. Takes precedence if both provided."
},
"name": {
"type": [
"string",
"number"
],
"description": "Item name (e.g., 'SubtensorModule', 'StakeAdded', 'add_stake', 'AccountId32', 'pruning', 'pow-faucet') or type ID number. For type=\"account\": the declaring key ('SubtensorModule.SubtensorPalletId'). For type=\"precompile\": a name ('StakingV2') or 0x address."
},
"type": {
"enum": [
"pallet",
"event",
"call",
"storage",
"constant",
"error",
"type",
"runtime_api",
"rpc_method",
"account",
"precompile",
"cli_flag",
"build_feature"
],
"type": "string",
"description": "What kind of item to look up"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"pallet": {
"type": "string",
"description": "Pallet name — required for event/call/storage/constant/error lookups (e.g., 'SubtensorModule')"
},
"address": {
"type": "string",
"description": "For type=\"account\": an SS58 address to identify. Returns which protocol account it is, including the sub-index, or reports that it is an ordinary wallet."
},
"include": {
"enum": [
"events",
"calls",
"storage",
"constants",
"errors"
],
"type": "string",
"description": "For pallet lookup: filter to a specific item type with descriptions"
},
"language": {
"enum": [
"typescript",
"python-bt",
"python-sub",
"rust"
],
"type": "string",
"description": "Field name casing for your language. TypeScript shows camelCase (tickLow), others show snake_case (tick_low). Overrides session preference."
},
"preferences": {
"type": "string",
"description": "Preferences handle from subtensor_preferences(action=\"set\"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle."
},
"include_history": {
"type": "boolean",
"description": "Include full argument signatures for each version range (events/calls only)"
},
"include_removed": {
"type": "boolean",
"description": "Include removed/historical items (default: false)"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"type",
"name"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"description": "Item kind, mirrors the request type"
},
"pallet": {
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Browse items by category: pallets, events, calls, storage, constants, errors, types, runtime APIs, RPC methods, protocol accounts, EVM precompiles, mechanisms, workflows, hyperparameters, cli_flags, build_features, chain_specs, or env_vars.
| Parameter | Type | Description |
|---|---|---|
| kind | string | For types: filter by type kind |
| role | string | Filter calls by required role (only applies when category=calls) |
| limit | number | Max items per page (default: 10) |
| cursor | string | Pagination cursor from previous response |
| domain | string | For mechanisms: filter by domain |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| pallet | string | Pallet name — required for events/calls/storage/constants/errors (e.g., 'SubtensorModule'). For category='rpc_methods' this filters by RPC namespace instead (e.g., 'state', 'subtensor'). |
| search | string | For types: search by name |
| context | string | For cli_flags/build_features: filter by usage context |
| category * | string | Category of items to list |
| flag_category | string | For cli_flags: filter by flag category (chain, sync, networking, rpc, metrics, runtime, subtensor) |
| include_removed | boolean | Include removed/historical items (default: false) |
{
"name": "subtensor_list",
"title": "List Subtensor items",
"description": "Browse items by category: pallets, events, calls, storage, constants, errors, types, runtime APIs, RPC methods, protocol accounts, EVM precompiles, mechanisms, workflows, hyperparameters, cli_flags, build_features, chain_specs, or env_vars.",
"inputSchema": {
"type": "object",
"required": [
"category"
],
"properties": {
"kind": {
"enum": [
"primitive",
"composite",
"variant",
"sequence",
"array",
"tuple",
"compact"
],
"type": "string",
"description": "For types: filter by type kind"
},
"role": {
"enum": [
"hotkey",
"coldkey",
"coldkey:owner",
"coldkey:subnet-owner",
"root",
"senate",
"any"
],
"type": "string",
"description": "Filter calls by required role (only applies when category=calls)"
},
"limit": {
"type": "number",
"description": "Max items per page (default: 10)"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"domain": {
"enum": [
"consensus",
"emission",
"staking",
"registration",
"subnet",
"governance",
"identity",
"security",
"swap",
"data",
"randomness"
],
"type": "string",
"description": "For mechanisms: filter by domain"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"pallet": {
"type": "string",
"description": "Pallet name — required for events/calls/storage/constants/errors (e.g., 'SubtensorModule'). For category='rpc_methods' this filters by RPC namespace instead (e.g., 'state', 'subtensor')."
},
"search": {
"type": "string",
"description": "For types: search by name"
},
"context": {
"enum": [
"dev",
"production",
"both"
],
"type": "string",
"description": "For cli_flags/build_features: filter by usage context"
},
"category": {
"enum": [
"pallets",
"events",
"calls",
"storage",
"constants",
"errors",
"types",
"runtime_apis",
"rpc_methods",
"accounts",
"precompiles",
"mechanisms",
"workflows",
"hyperparameters",
"cli_flags",
"build_features",
"chain_specs",
"env_vars"
],
"type": "string",
"description": "Category of items to list"
},
"flag_category": {
"type": "string",
"description": "For cli_flags: filter by flag category (chain, sync, networking, rpc, metrics, runtime, subtensor)"
},
"include_removed": {
"type": "boolean",
"description": "Include removed/historical items (default: false)"
}
}
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"type": "object",
"required": [
"category",
"pallets"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"pallets": {
"type": "array"
},
"category": {
"const": "pallets"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"events"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"events": {
"type": "array"
},
"category": {
"const": "events"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"calls"
],
"properties": {
"calls": {
"type": "array"
},
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "calls"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"storage"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"storage": {
"type": "array"
},
"category": {
"const": "storage"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"constants"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "constants"
},
"constants": {
"type": "array"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"errors"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"errors": {
"type": "array"
},
"category": {
"const": "errors"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"types"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"types": {
"type": "array"
},
"category": {
"const": "types"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"apis"
],
"properties": {
"apis": {
"type": "array"
},
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "runtime_apis"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"methods"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"methods": {
"type": "array"
},
"category": {
"const": "rpc_methods"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"accounts"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"accounts": {
"type": "array"
},
"category": {
"const": "accounts"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"precompiles"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "precompiles"
},
"nextCursor": {
"type": "string"
},
"precompiles": {
"type": "array"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"mechanisms"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "mechanisms"
},
"mechanisms": {
"type": "array"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"categories"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "workflows"
},
"categories": {
"type": "object"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"hyperparameters"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "hyperparameters"
},
"nextCursor": {
"type": "string"
},
"hyperparameters": {
"type": "array"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"cli_flags"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "cli_flags"
},
"cli_flags": {
"type": "array"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"build_features"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "build_features"
},
"nextCursor": {
"type": "string"
},
"build_features": {
"type": "array"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"chain_specs"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "chain_specs"
},
"nextCursor": {
"type": "string"
},
"chain_specs": {
"type": "array"
}
},
"additionalProperties": true
},
{
"type": "object",
"required": [
"category",
"env_vars"
],
"properties": {
"count": {
"type": "number"
},
"total": {
"type": "number"
},
"category": {
"const": "env_vars"
},
"env_vars": {
"type": "array"
},
"nextCursor": {
"type": "string"
}
},
"additionalProperties": true
}
],
"required": [
"category"
],
"properties": {
"category": {
"type": "string",
"description": "Item category, mirrors the request category"
}
},
"description": "Shape varies by category: each branch pins the category to the array field it returns its items in."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Explore relationships, version history, removed items, changelogs, and migration guides between runtime versions.
| Parameter | Type | Description |
|---|---|---|
| name | string | Item name (e.g., 'StakeAdded', 'add_stake', 'TotalStake') |
| type | string | Item type — for relationships (event/call/storage/error), for removed (all/pallet/event/call/storage/constant/error) |
| limit | number | Max items per page (default: 10) |
| topic * | string | What to explore |
| cursor | string | Pagination cursor from previous response |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| pallet | string | Pallet name (e.g., 'SubtensorModule') |
| version | number | For versions: look up a specific version |
| to_version | number | For changelog/migration: end version |
| from_version | number | For changelog/migration: start version |
{
"name": "subtensor_explore",
"title": "Explore relationships and changelogs",
"description": "Explore relationships, version history, removed items, changelogs, and migration guides between runtime versions.",
"inputSchema": {
"type": "object",
"required": [
"topic"
],
"properties": {
"name": {
"type": "string",
"description": "Item name (e.g., 'StakeAdded', 'add_stake', 'TotalStake')"
},
"type": {
"enum": [
"event",
"call",
"storage",
"error",
"all",
"pallet",
"constant"
],
"type": "string",
"description": "Item type — for relationships (event/call/storage/error), for removed (all/pallet/event/call/storage/constant/error)"
},
"limit": {
"type": "number",
"description": "Max items per page (default: 10)"
},
"topic": {
"enum": [
"relationships",
"emitters",
"modifiers",
"throwers",
"removed",
"changelog",
"migration",
"versions"
],
"type": "string",
"description": "What to explore"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"pallet": {
"type": "string",
"description": "Pallet name (e.g., 'SubtensorModule')"
},
"version": {
"type": "number",
"description": "For versions: look up a specific version"
},
"to_version": {
"type": "number",
"description": "For changelog/migration: end version"
},
"from_version": {
"type": "number",
"description": "For changelog/migration: start version"
}
}
},
"outputSchema": {
"type": "object",
"required": [
"topic"
],
"properties": {
"topic": {
"type": "string",
"description": "Explore topic, mirrors the request topic"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Understand Bittensor concepts, workflows, mechanisms, runtime APIs, runtime errors, extrinsic format, or get code examples.
| Parameter | Type | Description |
|---|---|---|
| name | string | Topic-specific name: concept name ('staking'), workflow ID ('add-stake'), mechanism ID ('yuma-consensus'), runtime API name ('NeuronInfoRuntimeApi'), or item name for examples |
| topic * | string | What to explain |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| pallet | string | Pallet name — required for examples (e.g., 'SubtensorModule') |
| language | string | For examples: filter to one language (overrides session preference) |
| node_url | string | For examples: WebSocket endpoint override |
| enum_slug | string | For runtime_errors: get a specific error enum |
| item_type | string | For examples: type of item to generate code for |
| node_type | string | For examples: 'lite' (current state) or 'archive' (historical patterns) |
| preferences | string | Preferences handle from subtensor_preferences(action="set"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle. |
{
"name": "subtensor_explain",
"title": "Explain Subtensor concepts",
"description": "Understand Bittensor concepts, workflows, mechanisms, runtime APIs, runtime errors, extrinsic format, or get code examples.",
"inputSchema": {
"type": "object",
"required": [
"topic"
],
"properties": {
"name": {
"type": "string",
"description": "Topic-specific name: concept name ('staking'), workflow ID ('add-stake'), mechanism ID ('yuma-consensus'), runtime API name ('NeuronInfoRuntimeApi'), or item name for examples"
},
"topic": {
"enum": [
"concept",
"workflow",
"mechanism",
"runtime_api",
"runtime_errors",
"extrinsic_format",
"examples",
"monitor",
"event_group"
],
"type": "string",
"description": "What to explain"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"pallet": {
"type": "string",
"description": "Pallet name — required for examples (e.g., 'SubtensorModule')"
},
"language": {
"enum": [
"typescript",
"python-bt",
"python-sub",
"rust"
],
"type": "string",
"description": "For examples: filter to one language (overrides session preference)"
},
"node_url": {
"type": "string",
"description": "For examples: WebSocket endpoint override"
},
"enum_slug": {
"enum": [
"dispatch",
"token",
"arithmetic",
"transactional",
"trie",
"module"
],
"type": "string",
"description": "For runtime_errors: get a specific error enum"
},
"item_type": {
"enum": [
"storage",
"call",
"event"
],
"type": "string",
"description": "For examples: type of item to generate code for"
},
"node_type": {
"enum": [
"lite",
"archive"
],
"type": "string",
"description": "For examples: 'lite' (current state) or 'archive' (historical patterns)"
},
"preferences": {
"type": "string",
"description": "Preferences handle from subtensor_preferences(action=\"set\"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle."
}
}
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"required": [
"topic"
],
"properties": {
"topic": {
"type": "string",
"description": "Explain topic, mirrors the request topic"
}
}
},
{
"required": [
"type",
"name"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"description": "Item kind — 'runtime_api', shared shape with subtensor_lookup"
}
}
}
],
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Get or set session preferences for language, node URL, and node type. Language affects field name casing (TypeScript=camelCase, others=snake_case) and code examples.
| Parameter | Type | Description |
|---|---|---|
| action | string | Action to perform (default: 'get') |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| language | string | For set: preferred language. Affects field name casing in lookups (TypeScript=camelCase, others=snake_case) and code examples. |
| node_url | string | For set: WebSocket endpoint for generated code |
| node_type | string | For set: 'lite' (current state) or 'archive' (historical patterns) |
| preferences | string | Preferences handle from subtensor_preferences(action="set"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle. |
{
"name": "subtensor_preferences",
"title": "Session preferences",
"description": "Get or set session preferences for language, node URL, and node type. Language affects field name casing (TypeScript=camelCase, others=snake_case) and code examples.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"action": {
"enum": [
"get",
"set"
],
"type": "string",
"description": "Action to perform (default: 'get')"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"language": {
"enum": [
"typescript",
"python-bt",
"python-sub",
"rust"
],
"type": "string",
"description": "For set: preferred language. Affects field name casing in lookups (TypeScript=camelCase, others=snake_case) and code examples."
},
"node_url": {
"type": "string",
"description": "For set: WebSocket endpoint for generated code"
},
"node_type": {
"enum": [
"lite",
"archive"
],
"type": "string",
"description": "For set: 'lite' (current state) or 'archive' (historical patterns)"
},
"preferences": {
"type": "string",
"description": "Preferences handle from subtensor_preferences(action=\"set\"). Carries language/node_url/node_type without a session. Explicit arguments on this call take precedence over the handle."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"node_type",
"preferences_handle"
],
"properties": {
"language": {
"type": [
"string",
"null"
]
},
"node_url": {
"type": [
"string",
"null"
]
},
"node_type": {
"type": "string"
},
"preferences_handle": {
"type": "string",
"description": "Pass back as `preferences` on later calls to reapply these."
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Decode SCALE-encoded hex into labelled fields with RAO→TAO and hex→SS58 conversions applied. Omit pallet and name to identify an event or call from its two-byte (pallet index, item index) prefix — the usual case when you have bytes and want to know what they are.
| Parameter | Type | Description |
|---|---|---|
| hex * | string | SCALE-encoded bytes as hex, with or without a 0x prefix. Whitespace is ignored. |
| kind | string | What the bytes are: 'event' (default), 'call', or 'value' for a bare value of a given type |
| name | string | Event or call name. Must be given together with "pallet". |
| type | string | For kind="value": the SCALE type to decode against, e.g. "u64", "AccountId", "Vec<u16>", "Option<u32>" |
| format | string | Response format: 'text' (compact, default) or 'json' (structured) |
| pallet | string | Pallet of the event or call. Omit together with "name" to identify the item from the byte prefix instead. |
{
"name": "subtensor_decode",
"title": "Decode SCALE data",
"description": "Decode SCALE-encoded hex into labelled fields with RAO→TAO and hex→SS58 conversions applied. Omit pallet and name to identify an event or call from its two-byte (pallet index, item index) prefix — the usual case when you have bytes and want to know what they are.",
"inputSchema": {
"type": "object",
"required": [
"hex"
],
"properties": {
"hex": {
"type": "string",
"description": "SCALE-encoded bytes as hex, with or without a 0x prefix. Whitespace is ignored."
},
"kind": {
"enum": [
"event",
"call",
"value"
],
"type": "string",
"description": "What the bytes are: 'event' (default), 'call', or 'value' for a bare value of a given type"
},
"name": {
"type": "string",
"description": "Event or call name. Must be given together with \"pallet\"."
},
"type": {
"type": "string",
"description": "For kind=\"value\": the SCALE type to decode against, e.g. \"u64\", \"AccountId\", \"Vec<u16>\", \"Option<u32>\""
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"description": "Response format: 'text' (compact, default) or 'json' (structured)"
},
"pallet": {
"type": "string",
"description": "Pallet of the event or call. Omit together with \"name\" to identify the item from the byte prefix instead."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"kind",
"input",
"fields",
"trailing_bytes"
],
"properties": {
"kind": {
"type": "string"
},
"input": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"raw"
],
"properties": {
"raw": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"error": {
"type": "string"
},
"value": {},
"display": {
"type": "string"
},
"conversion": {
"type": "string"
}
},
"additionalProperties": true
}
},
"trailing_bytes": {
"type": "string"
}
},
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Subtensor Reference API — Bittensor blockchain documentation. Runtime v493, 29 pallets, 1731+ items. 7 tools, all accept format="text"|"json". DISCOVERY PATTERN: 1. subtensor_list(category="pallets") → see all pallets 2. subtensor_lookup(type="pallet", name="SubtensorModule") → item names 3. subtensor_lookup(type="event", pallet="SubtensorModule", name="StakeAdded") → full details 4. subtensor_search(query="stake") → find by keyword 5. subtensor_explain(topic="concept", name="staking") → understand domain TOOLS: - subtensor_search: Find items by keyword across all types - subtensor_lookup: Get details on a pallet, event, call, storage, constant, error, or type - subtensor_list: Browse pallets, events, calls, storage, constants, errors, types, runtime APIs, mechanisms, workflows - subtensor_explore: Relationships, changelogs, removed items, migration guides, runtime versions - subtensor_explain: Concepts, workflows, mechanisms, runtime APIs/errors, extrinsic format, code examples - subtensor_preferences: Get/set session language, node URL, node type - subtensor_decode: Decode SCALE hex into labelled fields (RAO→TAO, hex→SS58) UNITS: Balances in RAO (1 TAO = 10^9 RAO). Accounts as SS58 prefix 42. KEY PALLETS: SubtensorModule (staking/neurons/subnets), Balances (TAO transfers), System (runtime info). Free reference API. No auth required. Powered by subtensor.com (bittensor.ai).
Names, descriptions and schemas were written by the server and are shown as data.