query_dataset
Query specific datasets from the Cryo MCP Server using block ranges, contract addresses, and output formats. Retrieve and filter blockchain data for analysis or integration.
Instructions
Query a cryo dataset and return the results
Args:
dataset: The name of the dataset to query (e.g., 'logs', 'transactions')
blocks: Block range specification as a string (e.g., '1000:1010')
start_block: Start block number as integer (alternative to blocks)
end_block: End block number as integer (alternative to blocks)
use_latest: If True, query the latest block
blocks_from_latest: Number of blocks before the latest to include (e.g., 10 = latest-10 to latest)
contract: Contract address to filter by
output_format: Output format (json, csv, parquet)
include_columns: Columns to include alongside the defaults
exclude_columns: Columns to exclude from the defaults
Returns:
The dataset results
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blocks | No | ||
blocks_from_latest | No | ||
contract | No | ||
dataset | Yes | ||
end_block | No | ||
exclude_columns | No | ||
include_columns | No | ||
output_format | No | json | |
start_block | No | ||
use_latest | No |
Input Schema (JSON Schema)
{
"properties": {
"blocks": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Blocks"
},
"blocks_from_latest": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Blocks From Latest"
},
"contract": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Contract"
},
"dataset": {
"title": "Dataset",
"type": "string"
},
"end_block": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "End Block"
},
"exclude_columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Exclude Columns"
},
"include_columns": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Include Columns"
},
"output_format": {
"default": "json",
"title": "Output Format",
"type": "string"
},
"start_block": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Start Block"
},
"use_latest": {
"default": false,
"title": "Use Latest",
"type": "boolean"
}
},
"required": [
"dataset"
],
"title": "query_datasetArguments",
"type": "object"
}