Skip to main content
Glama

list_datasets

Retrieve a list of all available cryo datasets from the Cryo MCP Server, enabling users to query Ethereum blockchain data efficiently through MCP-compatible clients.

Instructions

Return a list of all available cryo datasets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The list_datasets tool handler: runs 'cryo help datasets' subprocess, parses output to return list of available Cryo datasets. Registered via @mcp.tool() decorator.
    @mcp.tool()
    def list_datasets() -> List[str]:
        """Return a list of all available cryo datasets"""
        # Ensure we have the RPC URL
        rpc_url = os.environ.get("ETH_RPC_URL", DEFAULT_RPC_URL)
        
        result = subprocess.run(
            ["cryo", "help", "datasets", "-r", rpc_url],
            capture_output=True,
            text=True
        )
    
        # Parse the output to extract dataset names
        lines = result.stdout.split('\n')
        datasets = []
    
        for line in lines:
            if line.startswith('- ') and not line.startswith('- blocks_and_transactions:'):
                # Extract dataset name, removing any aliases
                dataset = line[2:].split(' (alias')[0].strip()
                datasets.append(dataset)
            if line == 'dataset group names':
                break
    
        return datasets

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/z80dev/cryo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server