Skip to main content
Glama

account_info

Retrieve your platform wallet address, tool pricing in HBAR/USD, and account balance to begin using Hedera blockchain services. No API key required for initial access.

Instructions

Get platform wallet address, pricing for all 20 tools in HBAR and USD, and your current balance. FREE to call — no API key required. Use this tool first to discover how to fund an account and start using the platform. To create an account automatically, simply send HBAR to the platform wallet — your Hedera account ID becomes your API key automatically. 20 tools across 6 modules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional. Your Hedera account ID (e.g. 0.0.456789) or API key. If provided, your current balance is returned.

Implementation Reference

  • The `getAccountInfo` function is the actual handler for the 'account_info' tool, fetching price information, platform details, and account balance if an API key is provided.
    async function getAccountInfo(args) {
      const { api_key } = args || {};
    
      // Fetch live HBAR/USD price (cached, 5 min TTL)
      const hbarPriceUsd = await getHbarPriceUsd();
    
      // Build pricing table with live USD equivalents
      const pricing = Object.entries(COSTS).map(([tool, cost]) => {
        const hbarAmount = parseFloat(cost.hbar);
        const entry = {
          tool,
          cost_hbar: cost.hbar,
          cost_usd: formatUsdCost(hbarAmount, hbarPriceUsd),
        };
        return entry;
      });
    
      // Check balance if an api_key was provided
      let balanceInfo = null;
      if (api_key) {
        const account = getAccount(api_key);
        if (account) {
          const balanceHbar = (account.balance_tinybars / 100_000_000);
          balanceInfo = {
            api_key,
            balance_hbar: balanceHbar.toFixed(4),
            balance_usd: hbarPriceUsd
              ? `~$${(balanceHbar * hbarPriceUsd).toFixed(2)}`
              : null,
            hedera_account_id: account.hedera_account_id,
            created_at: account.created_at,
            last_used: account.last_used,
          };
        } else {
          balanceInfo = {
            api_key,
            balance_hbar: "0.0000",
            message: "Account not found. Send HBAR to the platform wallet to create your account automatically.",
          };
        }
      }
    
      return {
        service: "HederaToolbox — Hedera MCP Platform",
        description: "20 tools across 6 modules. Pay per call in HBAR. No registration required.",
    
        hbar_price_usd: hbarPriceUsd ? `$${hbarPriceUsd.toFixed(4)}` : "unavailable",
        hbar_price_source: "SaucerSwap DEX (live, 5-min cache)",
    
        how_to_fund: {
          step_1: "Send any amount of HBAR to the platform wallet below.",
          step_2: "Your Hedera account ID becomes your API key automatically.",
          step_3: "Pass your Hedera account ID as the api_key parameter in any tool call.",
          step_4: "Call account_info with your api_key at any time to check your balance.",
          minimum_deposit: "Minimum deposit: 0.1 HBAR. Deposits below 0.1 HBAR are silently ignored — no account is created and no balance is credited. Recommended starting deposit: 5–10 HBAR for comfortable exploration of all tools.",
          note: "Balances are persistent. Unused credit carries over indefinitely. You can top up at any time by sending more HBAR to the platform wallet.",
        },
    
        platform_wallet: {
          account_id: process.env.HEDERA_ACCOUNT_ID,
          network: process.env.HEDERA_NETWORK || "mainnet",
          memo: "HederaToolbox deposit — your sending account ID becomes your API key",
        },
    
        pricing,
    
        ...(balanceInfo && { your_account: balanceInfo }),
    
        links: {
          website: "https://hederatoolbox.com",
          mcp_endpoint: "https://hedera-mcp-platform-production.up.railway.app/mcp",
          npm: "https://www.npmjs.com/package/@hederatoolbox/platform",
          llms_txt: "https://hederatoolbox.com/llms.txt",
        },
      };
    }
  • The definition and schema for the 'account_info' tool.
    export const ACCOUNT_TOOL_DEFINITIONS = [
      {
        name: "account_info",
        description:
          "Get platform wallet address, pricing for all 20 tools in HBAR and USD, and your current balance. " +
          "FREE to call — no API key required. " +
          "Use this tool first to discover how to fund an account and start using the platform. " +
          "To create an account automatically, simply send HBAR to the platform wallet — " +
          "your Hedera account ID becomes your API key automatically. " +
          "20 tools across 6 modules.",
        inputSchema: {
          type: "object",
          properties: {
            api_key: {
              type: "string",
              description: "Optional. Your Hedera account ID (e.g. 0.0.456789) or API key. If provided, your current balance is returned.",
            },
          },
          required: [],
        },
      },
  • The registration/dispatcher function that routes 'account_info' calls to `getAccountInfo`.
    export async function executeAccountTool(name, args) {
      if (name === "account_info") {
        return getAccountInfo(args);
      }
      throw new Error(`Unknown account tool: ${name}`);
    }
Behavior4/5

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

Since no annotations are provided, the description carries the full burden of behavioral disclosure. It effectively describes key traits: it's free to call, no API key is required, and it serves as an entry point for platform onboarding. However, it lacks details on rate limits, error handling, or response format, which would be helpful for a tool with no output schema.

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?

The description is front-loaded with the core purpose, followed by usage guidance and platform context. It's efficient but includes some promotional content ('20 tools across 6 modules') that, while informative, slightly reduces conciseness. Most sentences directly support tool understanding.

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

Completeness4/5

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

For a tool with no annotations and no output schema, the description does a good job covering purpose, usage, and behavioral aspects. It explains the parameter's effect and onboarding process. However, it doesn't detail the return structure or potential errors, leaving some gaps in completeness for an agent invoking the tool.

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 100% description coverage, so the baseline is 3. The description adds value by explaining the optional parameter's purpose ('If provided, your current balance is returned') and providing context on account creation ('your Hedera account ID becomes your API key automatically'), which enhances understanding beyond the schema's technical details.

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

Purpose5/5

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

The description clearly states the tool's purpose with specific verbs ('Get platform wallet address, pricing for all 20 tools in HBAR and USD, and your current balance') and distinguishes it from siblings by focusing on account information rather than contract analysis, governance, HCS operations, identity checks, or token functions. It provides a comprehensive overview of what data is retrieved.

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

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('Use this tool first to discover how to fund an account and start using the platform') and provides clear alternatives for account creation ('To create an account automatically, simply send HBAR to the platform wallet'). It also mentions it's 'FREE to call — no API key required,' which helps differentiate it from tools that might require authentication.

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/mountainmystic/hederatoolbox'

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