Skip to main content
Glama

Account details

get_account
Read-only

Retrieve an account's CELO balance in wei and CELO, nonce, and contract or externally owned account status; optionally include contract bytecode when needed.

Instructions

Get an account's CELO balance (in wei and in CELO), nonce, and whether the address is a contract or an externally owned account. Contract bytecode is left out unless include_code is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "get_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesThe account address.
include_codeNoInclude the contract bytecode as a hex string. It can be tens of kilobytes, so it is off by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond that: bytecode is excluded by default and can be tens of kilobytes, which warns the agent about response size before it opts in. It does not discuss chain/network assumptions or failure behavior for invalid addresses, keeping it below 5.

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?

Two sentences, no filler, and the payload of the call (balance, nonce, account type) is front-loaded before the optional-code caveat. Every clause carries information an agent needs.

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?

With no output schema, the description must enumerate return values and it does so precisely, including units (wei and CELO) and the conditional bytecode field. It leaves minor gaps such as how a non-existent or malformed address is handled, but an agent has enough to call it correctly.

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%, so both parameters are already documented in the input schema, including the size rationale for include_code. The description restates that bytecode is omitted unless include_code is true, reinforcing its output effect but adding no new syntax or format information. Baseline 3 applies when the schema carries the detail.

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 uses a specific verb ('Get') and resource ('an account'), then enumerates exactly what is returned: CELO balance in wei and CELO, nonce, and contract-vs-EOA determination. That is far more informative than the title 'Account details'. It stops short of naming a sibling to distinguish from, e.g., get_celo_balances or get_token_balance, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is implied by the returned fields (you call it when you need an address's balance, nonce, or account type), but there is no explicit when-to-use, when-not-to-use, or named alternative. The only conditional guidance is about include_code, not about choosing this tool over get_celo_balances or get_token_balance.

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