Skip to main content
Glama
kilkelly

Nano Currency MCP Server

by kilkelly

nano_account_info

Retrieve detailed account information for a Nano address, including balance, representative, and frontier block, using the Nano Currency MCP Server.

Instructions

Retrieve detailed information about a specific Nano account/address, including balance (in Nano and raw units), representative, and frontier block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesNano address/account to get information about

Implementation Reference

  • The handler function for nano_account_info tool. It fetches account information using getAccountInfo helper, formats the balance, and returns a formatted text response or handles errors.
    async function (parameters) {  
      try {
        let accountInfo =  await getAccountInfo(parameters.address)
    
        return createTextResponse(`The account information for ${parameters.address} is ` + JSON.stringify({ ...accountInfo, balance: friendlyAmount(accountInfo.balance) }))
      }
      catch (error) {
        console.error('[nano_account_info] Error:', error.message || error);
        return createErrorResponse(error)
      }    
    }
  • Zod schema defining the input parameter 'address' with validation and description for the nano_account_info tool.
    const nano_account_info_parameters = {
      address: z.string({ required_error: 'Address is required' })
        .refine(address_ => N.checkAddress(address_), { message: 'Nano address is not valid' })
        .describe("Nano address/account to get information about")
    }
  • Registration of the nano_account_info tool using server.tool, specifying name, description, parameters schema, and handler function.
    server.tool(
      'nano_account_info',
      'Retrieve detailed information about a specific Nano account/address, including balance (in Nano and raw units), representative, and frontier block.',
      nano_account_info_parameters,
      async function (parameters) {  
        try {
          let accountInfo =  await getAccountInfo(parameters.address)
    
          return createTextResponse(`The account information for ${parameters.address} is ` + JSON.stringify({ ...accountInfo, balance: friendlyAmount(accountInfo.balance) }))
        }
        catch (error) {
          console.error('[nano_account_info] Error:', error.message || error);
          return createErrorResponse(error)
        }    
      }
    )
  • Helper function that performs the Nano RPC 'account_info' call to retrieve detailed account information, used by the nano_account_info handler.
    async function getAccountInfo(address) {
      return (
        await rpcCall(
          NANO_RPC_URL_KEY,
          'account_info',
          {
            account: address,
            representative: 'true'
          }
        )
      )
    }
  • Helper function to format balance in both Nano and raw units, used in the response formatting.
    function friendlyAmount (balance) {
      return `${convertRawToNano(balance)} in nano units or ${balance} in raw units`
    }
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. It mentions retrieval of information but doesn't disclose behavioral traits such as whether this is a read-only operation, potential rate limits, authentication needs, or error handling. For a tool with zero annotation coverage, this is a significant gap in transparency.

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 purpose and details without waste. Every part earns its place by specifying what is retrieved and the included data points.

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 (1 parameter, no output schema, no annotations), the description is adequate for basic use. However, it lacks completeness for more advanced needs, such as explaining return values or behavioral aspects, which could be important in a broader context.

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%, with the parameter 'address' documented as 'Nano address/account to get information about.' The description adds minimal value beyond this, as it doesn't provide additional context like format examples or constraints. Baseline 3 is appropriate when the schema does the heavy lifting.

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 verb ('Retrieve') and resource ('Nano account/address') with specific details about what information is returned ('balance, representative, and frontier block'). It distinguishes from sibling tools like 'block_info' (which retrieves block information) and 'nano_send' (which sends transactions).

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?

The description implies usage by specifying 'specific Nano account/address,' suggesting it's for querying individual accounts. However, it doesn't explicitly state when to use this versus alternatives like 'nano_my_account_info' (which might retrieve info for a predefined account) or provide exclusions, leaving some ambiguity.

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

Related 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/kilkelly/nano-currency-mcp-server'

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