Skip to main content
Glama

Find Polkadot calls

portal_substrate_query_calls
Read-only

Query raw Substrate or Polkadot calls with pallet/call-name filters and optional child-call, emitted-event, or extrinsic context.

COMMON USER ASKS:

  • Recent Balances calls

  • Polkadot calls with emitted events

FIRST CHOICE FOR:

  • raw Substrate or Polkadot call rows, especially when you want the events emitted by those calls

WHEN TO USE:

  • You need raw call records on a Substrate network.

  • You want pallet call activity like Balances.transfer_keep_alive or Ethereum.transact.

  • You want calls plus the events emitted by those calls.

DON'T USE:

  • You want events or aggregate analytics rather than call rows.

EXAMPLES:

  • Recent Balances calls: {"network":"polkadot","timeframe":"1h","call_names":["Balances.transfer_keep_alive"],"limit":20}

  • Polkadot calls with emitted events: {"network":"polkadot","timeframe":"1h","call_names":["ParaInherent.enter"],"include_events":true,"limit":20}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax calls to return (max: 10; use compact mode for context-rich rows)
cursorNoContinuation cursor from a previous response
networkNoSubstrate network name or alias. Optional when continuing with cursor.
to_blockNoEnding block number
timeframeNoTime range (e.g. '1h', '24h'). Alternative to from_block/to_block.
call_namesNoOptional qualified call names like Timestamp.set or Balances.transfer_keep_alive
from_blockNoStarting block number
to_timestampNoEnding timestamp. Accepts Unix seconds, Unix milliseconds, ISO datetime, or relative input like "now".
include_stackNoAttach the parent call stack for each matching call
finalized_onlyNoOnly query finalized blocks
from_timestampNoStarting timestamp. Accepts Unix seconds, Unix milliseconds, ISO datetime, or relative input like "6h ago".
include_eventsNoAttach events emitted directly by each matching call
response_formatNoResponse format: defaults to 'compact' for chat-friendly output. Compact mode keeps requested subcalls, events, and extrinsic context in a smaller inline shape.
include_subcallsNoAttach direct descendant calls inline for each matching call
include_extrinsicNoAttach the parent extrinsic inline for each matching call

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
_uiNoChart, table, and follow-up presentation metadata.
_appNoSQD Explorer identity and host-render state.
_llmNoHints to locate the primary evidence.
_metaNoNetwork, block range, timing, and row counts.
errorNoStructured failure details.
itemsNoPrimary rows for list results.
valueNoPrimary scalar result.
answerNoAnswer grounded in the returned data.
_noticeNoLimitation or truncation notice.
_serverNoSQD server name, exact version, and git commit.
displayNoLabels for presenting the result.
_noticesNoLimitation or truncation notices.
_summaryNoHuman-readable summary.
_coverageNoWindow and result completeness.
_evidenceNoReplayable arguments, digest, row count, and receipt.
_orderingNoOrdering guarantees.
_executionNoBounded execution and scan details.
_freshnessNoFreshness and finality.
next_stepsNoSafe follow-up actions and continuation guidance.
_paginationNoPagination state and next_cursor.
investigationNoEvidence paths, pivots, and limitations.
pipes_handoffNoSQD Pipes guidance for custom data needs.
_tool_contractNoTool identity, intent, and chain families.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed51 schema fields changed
    • removedOutput schema / properties / _app / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / _app / description
      Previous value: -"SQD Explorer identity and honest host-render state."New value: +"SQD Explorer identity and host-render state."
    • removedOutput schema / properties / _app / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _app / type
      Removed value: -"object"
    • changedOutput schema / properties / _coverage / description
      Previous value: -"Completeness of the requested window and result set."New value: +"Window and result completeness."
    • removedOutput schema / properties / _evidence / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / _evidence / description
      Previous value: -"Replayable arguments, exact-data digest, row count, and completeness receipt."New value: +"Replayable arguments, digest, row count, and receipt."
    • removedOutput schema / properties / _evidence / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _evidence / type
      Removed value: -"object"
    • removedOutput schema / properties / _execution / additionalProperties
      Removed value: -{}
    • removedOutput schema / properties / _execution / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _execution / type
      Removed value: -"object"
    • changedOutput schema / properties / _freshness / description
      Previous value: -"Freshness and finality information for the returned data."New value: +"Freshness and finality."
    • changedOutput schema / properties / _llm / description
      Previous value: -"Hints that help an AI client locate the primary evidence."New value: +"Hints to locate the primary evidence."
    • removedOutput schema / properties / _meta / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / _meta / description
      Previous value: -"Network, block range, timing, and row-count metadata."New value: +"Network, block range, timing, and row counts."
    • removedOutput schema / properties / _meta / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / type
      Removed value: -"object"
    • changedOutput schema / properties / _notice / description
      Previous value: -"Important limitation or truncation notice."New value: +"Limitation or truncation notice."
    • changedOutput schema / properties / _notices / description
      Previous value: -"Important limitations or truncation notices."New value: +"Limitation or truncation notices."
    • changedOutput schema / properties / _ordering / description
      Previous value: -"Ordering guarantees for the returned data."New value: +"Ordering guarantees."
    • removedOutput schema / properties / _pagination / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / _pagination / description
      Previous value: -"Pagination state and an optional continuation cursor."New value: +"Pagination state and next_cursor."
    • removedOutput schema / properties / _pagination / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _pagination / type
      Removed value: -"object"
    • changedOutput schema / properties / _server / description
      Previous value: -"Observable SQD server identity and exact release version."New value: +"SQD server name, exact version, and git commit."
    • addedOutput schema / properties / _server / properties / commit
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / _server / required
      Previous value: -[
      -  "name",
      -  "version"
      -]New value: +[
      +  "name",
      +  "version",
      +  "commit"
      +]
    • changedOutput schema / properties / _summary / description
      Previous value: -"Human-readable summary of the result."New value: +"Human-readable summary."
    • removedOutput schema / properties / _tool_contract / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / _tool_contract / description
      Previous value: -"Tool identity, intent, and supported blockchain families."New value: +"Tool identity, intent, and chain families."
    • removedOutput schema / properties / _tool_contract / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _tool_contract / type
      Removed value: -"object"
    • changedOutput schema / properties / _ui / description
      Previous value: -"Optional chart, table, and follow-up presentation metadata."New value: +"Chart, table, and follow-up presentation metadata."
    • changedOutput schema / properties / answer / description
      Previous value: -"Concise answer grounded in the returned blockchain data."New value: +"Answer grounded in the returned data."
    • removedOutput schema / properties / display / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / display / description
      Previous value: -"Plain-language labels for presenting the result."New value: +"Labels for presenting the result."
    • removedOutput schema / properties / display / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / display / type
      Removed value: -"object"
    • changedOutput schema / properties / error / description
      Previous value: -"Structured failure details when the tool cannot complete the request."New value: +"Structured failure details."
    • removedOutput schema / properties / investigation / additionalProperties
      Removed value: -{}
    • changedOutput schema / properties / investigation / description
      Previous value: -"Evidence paths, useful pivots, and result limitations."New value: +"Evidence paths, pivots, and limitations."
    • removedOutput schema / properties / investigation / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / investigation / type
      Removed value: -"object"
    • changedOutput schema / properties / items / description
      Previous value: -"Primary result rows when the tool returns a list."New value: +"Primary rows for list results."
    • removedOutput schema / properties / next_steps / additionalProperties
      Removed value: -{}
    • removedOutput schema / properties / next_steps / properties
      Removed value: -{
      -  "actions": {
      -    "items": {
      -      "additionalProperties": {},
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "continuation": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "custom_data": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / next_steps / required
      Removed value: -[
      -  "actions"
      -]
    • removedOutput schema / properties / next_steps / type
      Removed value: -"object"
    • changedOutput schema / properties / pipes_handoff / description
      Previous value: -"Optional SQD Pipes guidance for custom data needs."New value: +"SQD Pipes guidance for custom data needs."
    • changedOutput schema / properties / value / description
      Previous value: -"Primary result when the tool returns a scalar value."New value: +"Primary scalar result."
  2. Changed2 schema fields changed
    • changedOutput schema / properties / _app / description
      Previous value: -"SQD Blockchain Activity Explorer identity and honest host-render state."New value: +"SQD Explorer identity and honest host-render state."
    • addedOutput schema / properties / _server
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Observable SQD server identity and exact release version.",
      +  "properties": {
      +    "name": {
      +      "type": "string"
      +    },
      +    "version": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "version"
      +  ],
      +  "type": "object"
      +}
  3. Changed6 schema fields changed
    • changedInput schema / properties / limit / default
      Previous value: -50New value: +10
    • changedInput schema / properties / limit / description
      Previous value: -"Max calls to return"New value: +"Max calls to return (max: 10; use compact mode for context-rich rows)"
    • addedInput schema / properties / limit / maximum
      Added value: +10
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedOutput schema / properties / _app
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "SQD Blockchain Activity Explorer identity and honest host-render state.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / _evidence
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Replayable arguments, exact-data digest, row count, and completeness receipt.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "_coverage": {
      +      "description": "Completeness of the requested window and result set."
      +    },
      +    "_execution": {
      +      "additionalProperties": {},
      +      "description": "Bounded execution and scan details.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "_freshness": {
      +      "description": "Freshness and finality information for the returned data."
      +    },
      +    "_llm": {
      +      "description": "Hints that help an AI client locate the primary evidence."
      +    },
      +    "_meta": {
      +      "additionalProperties": {},
      +      "description": "Network, block range, timing, and row-count metadata.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "_notice": {
      +      "description": "Important limitation or truncation notice.",
      +      "type": "string"
      +    },
      +    "_notices": {
      +      "description": "Important limitations or truncation notices.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "_ordering": {
      +      "description": "Ordering guarantees for the returned data."
      +    },
      +    "_pagination": {
      +      "additionalProperties": {},
      +      "description": "Pagination state and an optional continuation cursor.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "_summary": {
      +      "description": "Human-readable summary of the result.",
      +      "type": "string"
      +    },
      +    "_tool_contract": {
      +      "additionalProperties": {},
      +      "description": "Tool identity, intent, and supported blockchain families.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "_ui": {
      +      "description": "Optional chart, table, and follow-up presentation metadata."
      +    },
      +    "answer": {
      +      "description": "Concise answer grounded in the returned blockchain data.",
      +      "type": "string"
      +    },
      +    "display": {
      +      "additionalProperties": {},
      +      "description": "Plain-language labels for presenting the result.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "error": {
      +      "additionalProperties": {},
      +      "description": "Structured failure details when the tool cannot complete the request.",
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "origin": {
      +          "type": "string"
      +        },
      +        "retry_after_ms": {
      +          "type": "number"
      +        },
      +        "retryable": {
      +          "type": "boolean"
      +        },
      +        "suggestions": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "summary": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "origin",
      +        "summary",
      +        "retryable",
      +        "suggestions"
      +      ],
      +      "type": "object"
      +    },
      +    "investigation": {
      +      "additionalProperties": {},
      +      "description": "Evidence paths, useful pivots, and result limitations.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "items": {
      +      "description": "Primary result rows when the tool returns a list.",
      +      "items": {},
      +      "type": "array"
      +    },
      +    "next_steps": {
      +      "additionalProperties": {},
      +      "description": "Safe follow-up actions and continuation guidance.",
      +      "properties": {
      +        "actions": {
      +          "items": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "continuation": {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "custom_data": {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "actions"
      +      ],
      +      "type": "object"
      +    },
      +    "pipes_handoff": {
      +      "description": "Optional SQD Pipes guidance for custom data needs."
      +    },
      +    "value": {
      +      "description": "Primary result when the tool returns a scalar value."
      +    }
      +  },
      +  "type": "object"
      +}
  6. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / from_timestamp / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / from_timestamp / type
      Removed value: -[
      -  "number",
      -  "string"
      -]
    • addedInput schema / properties / to_timestamp / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / to_timestamp / type
      Removed value: -[
      -  "number",
      -  "string"
      -]
  7. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already carry readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds value beyond this by disclosing return-shape behavior (compact vs full vs summary response_format), that events are attached per-matching-call, and that include_subcalls/include_extrinsic attach inline context. It is fully consistent with the annotations, with no contradiction. The only gap is no mention of pagination limits, but the schema's limit maximum and cursor cover that.

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?

The description is front-loaded with the core purpose and organized into labeled sections (COMMON USER ASKS, FIRST CHOICE FOR, WHEN TO USE, DON'T USE, EXAMPLES) that each earn their place. It is somewhat long and there is mild overlap between FIRST CHOICE FOR and WHEN TO USE, but the structure makes it scannable and the examples are high-value. Efficient given the 15-parameter complexity.

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?

For a 15-parameter tool with an output schema present, this description is genuinely complete: it covers what the tool returns (raw call rows with optional events/subcalls/extrinsic), when to use it, when not to, and includes working examples for the two most common asks. Since an output schema exists, return-value details need not be spelled out, and the 100% schema coverage handles the remaining parameter semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description rises above baseline by providing two concrete example payloads that show how to combine network, timeframe, call_names, include_events, and limit into coherent queries (e.g., {"network":"polkadot","timeframe":"1h","call_names":["ParaInherent.enter"],"include_events":true,"limit":20}). It also explains the response_format semantics (compact defaults to chat-friendly). The examples add usage patterns the schema alone does not convey.

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?

The description opens with a specific verb+resource: 'Query raw Substrate or Polkadot calls with pallet/call-name filters and optional child-call, emitted-event, or extrinsic context.' This precisely distinguishes it from siblings like portal_substrate_query_events (events) and portal_substrate_get_analytics (aggregate analytics), and the DON'T USE section explicitly reinforces that boundary ('You want events or aggregate analytics rather than call rows'). An agent can separate this tool from its siblings without opening their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The WHEN TO USE and DON'T USE sections give explicit decision context: use for raw call records, pallet call activity, or calls plus emitted events; avoid for events or aggregate analytics. The exclusions are clear, though the alternatives are implied ('events or aggregate analytics') rather than naming the exact sibling tools (portal_substrate_query_events, portal_substrate_get_analytics). Very close to a 5, but stops short of explicitly citing sibling names.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.