Skip to main content
Glama

crypto_portfolio

Track real-time cryptocurrency portfolio values using CoinGecko data to monitor investment performance and make informed decisions.

Instructions

Get real-time crypto portfolio value from CoinGecko (no fake numbers)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinsNoComma-separated coin IDs (default: bitcoin,ethereum,solana)bitcoin,ethereum,solana

Implementation Reference

  • The 'crypto_portfolio' tool handler, which fetches cryptocurrency prices using 'getCryptoPrice' and formats the output.
    case "crypto_portfolio": {
      const coins = ((args as any).coins || "bitcoin,ethereum,solana").split(",");
      const results: string[] = [];
      for (const coin of coins) {
        const data = getCryptoPrice(coin.trim());
        if (data && data[coin.trim()]) {
          const d = data[coin.trim()];
          results.push(`${coin.trim().toUpperCase()}: $${d.usd?.toLocaleString()} (${d.usd_24h_change?.toFixed(2)}%) — MCap: $${(d.usd_market_cap / 1e9).toFixed(1)}B`);
        }
      }
      return {
        content: [{ type: "text", text: results.join("\n") || "Unable to fetch prices" }],
      };
    }
  • src/index.ts:317-326 (registration)
    Registration of the 'crypto_portfolio' tool within the MCP server definition.
    {
      name: "crypto_portfolio",
      description: "Get real-time crypto portfolio value from CoinGecko (no fake numbers)",
      inputSchema: {
        type: "object" as const,
        properties: {
          coins: { type: "string", description: "Comma-separated coin IDs (default: bitcoin,ethereum,solana)", default: "bitcoin,ethereum,solana" },
        },
      },
    },
Behavior2/5

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

No annotations provided, so description carries full burden. Mentions 'real-time' and external source 'CoinGecko' but omits critical behavioral details: authentication requirements, rate limits, error handling for API failures, data freshness guarantees, or response format structure.

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

Conciseness4/5

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

Single sentence, front-loaded with key information. Minor deduction for the parenthetical '(no fake numbers)' which consumes space without conveying technical constraints or behavior.

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?

Tool has low complexity (1 optional parameter) but no output schema or annotations. Description identifies the data source but fails to describe return value structure, format, or error conditions. Adequate but gaps remain for integration reliability.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (the 'coins' parameter is fully documented with type, format, and defaults). Description adds no parameter-specific guidance, but baseline 3 is appropriate when schema documentation is complete.

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?

States specific verb (Get) and resource (crypto portfolio value) with clear source (CoinGecko). Distinguishes effectively from business-oriented siblings (revenue, bounties, PR tools). Minor deduction for the informal parenthetical '(no fake numbers)' which adds no technical clarity.

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?

Provides no guidance on when to use this tool versus alternatives, nor any prerequisites (e.g., CoinGecko API availability, rate limit considerations). The agent must infer applicability from the tool name alone.

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/ElromEvedElElyon/revenue-mcp'

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