Overview
Explorer tools allow your AI agents to query Allium’s historical blockchain data using SQL queries. These tools provide access to raw and decoded data across 80+ blockchains.Available Tools
| Tool Name | Description |
|---|---|
explorer_run_query | Run a saved Explorer query using its query_id. Supports parameterization |
explorer_run_sql | Run raw SQL directly against Allium’s production datasets |
explorer_search_schemas | Semantic search across all schema docs. Returns relevant table IDs |
explorer_fetch_schema | Fetch YAML schema metadata by table IDs (full table name, e.g. ethereum.raw.blocks) |
Schema IDs match full table names (e.g.
ethereum.raw.token_transfers). Use search before fetching.Tool Usage
Run Saved Queries
Execute queries created in the Allium App.1
Save Your Query
Create and save a query in Explorer to obtain its
query_id.2
Call the Tool
sql- Full query textdata- Result rowsmeta.columns- Column names and typesqueried_at- Execution timestamp
Run Raw SQL
Execute ad-hoc SQL queries directly:Supports up to 250,000 rows per query by default.
Explore Schemas
- Search Schemas
- Fetch Schema
Find relevant tables using semantic search:Returns:
Response Format
All Explorer query tools return a JSON-RPC result:content.text as JSON to extract:
- sql - Full query string
- data - List of result rows (objects)
- meta.columns - Each column’s name and data type
- queried_at - ISO timestamp