Skip to main content
Glama

get_major_crypto_prices

Retrieve current market data for major cryptocurrencies including prices, market cap, trading volume, and price changes.

Instructions

Get comprehensive market data including prices, market capitalization, 24h trading volume, and 24h price changes for major cryptocurrencies (BTC, ETH)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of fetching and filtering major crypto prices.
    export const getMajorCryptoPrices = async () => {
        try {
            const allPricesResult = await getAllPrices();
            
            if (!allPricesResult.success) {
                return allPricesResult;
            }
    
            // Major cryptocurrencies
            const majorCryptoSymbols = ['BTC', 'ETH'];
            
            const cryptoPrices = (allPricesResult.prices || []).filter((price: any) => 
                majorCryptoSymbols.includes(price.symbol)
            );
    
            return {
                success: true,
                prices: cryptoPrices,
                count: cryptoPrices.length,
                category: 'major_crypto'
            };
        } catch (error: any) {
            console.error('Error fetching major crypto prices:', error);
            return {
                success: false,
                error: error.message || 'Failed to fetch major crypto prices'
            };
        }
    };
  • The registration of the 'get_major_crypto_prices' tool within the MCP framework.
    export const GetMajorCryptoPricesTool: McpTool = {
        name: "get_major_crypto_prices",
        description: "Get comprehensive market data including prices, market capitalization, 24h trading volume, and 24h price changes for major cryptocurrencies (BTC, ETH)",
        schema: {},
        handler: async (agent: WalletAgent, input: Record<string, any>) => {
            const result = await getMajorCryptoPrices();
    
            if (!result.success) {
                return {
                    status: "error",
                    message: (result as any).error
                };
            }
    
            const successResult = result as any;
            return {
                status: "success",
                prices: successResult.prices,
                count: successResult.count,
                category: successResult.category,
                timestamp: new Date().toISOString()
            };
        },
    };
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the data types returned (prices, market cap, volume, changes) but lacks details on rate limits, data sources, freshness, error handling, or authentication needs. This is a significant gap for a tool with no structured safety hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the key information ('Get comprehensive market data') and specifies the scope without unnecessary details. Every word contributes to understanding the tool's function, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description covers the basic purpose and data types. However, it lacks output format details, error information, or behavioral context, which could be helpful for an agent. It's minimally adequate but leaves gaps in completeness.

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?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description does not add parameter details, which is appropriate, earning a baseline score of 4 for adequately handling the absence of parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get comprehensive market data') and specifies the resource ('major cryptocurrencies (BTC, ETH)'), making the purpose evident. However, it does not explicitly differentiate from sibling tools like 'get_all_prices' or 'get_token_prices', which might offer broader or different scopes, preventing a perfect score.

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

Usage Guidelines2/5

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

The description implies usage for major cryptocurrencies like BTC and ETH, but provides no explicit guidance on when to use this tool versus alternatives such as 'get_all_prices' or 'get_token_prices'. There are no exclusions, prerequisites, or comparisons mentioned, leaving the agent to infer context.

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

Install Server

Other Tools

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/tamago-labs/kaia-mcp'

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