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_create_query | Create a new saved query programmatically. Returns a query_id for future use |
explorer_update_query | Update an existing saved query’s SQL, parameters, or configuration |
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_browse_schemas | Browse data schema hierarchy like a filesystem to discover databases, schemas, tables |
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
Create & Manage Queries
Create a New Query
Save a query programmatically for later reuse:query_id to run or update the query later.
Update an Existing Query
Modify a saved query’s SQL or configuration:- Optimize SQL for better performance
- Adjust row limits
- Update parameter defaults
- Change compute profiles
Run Saved Queries
Execute queries created in the Allium App or viaexplorer_create_query.
Get a Query ID
Create a query using
explorer_create_query or save one in the Allium App to obtain its query_id.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
- Browse 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