Skip to main content
Glama

AgentLogic MCP Server

sol_balance

Read a Solana address balance: lamports and SOL. Base58 addresses are validated (32-44 characters, decodable to 32 bytes); invalid addresses return a clean error. Price: $0.002 USDC on Base via x402.

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": "sol_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesSolana address (base58, 32-44 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably: it discloses input validation (base58, 32-44 chars, decodable to 32 bytes), error behavior for invalid addresses, and a payment requirement ($0.002 USDC on Base via x402). It omits rate limits and whether the call is read-only is only implied by "Read"; the return shape is only loosely described.

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?

Three tight clauses with purpose front-loaded, followed by validation/error behavior and cost. No redundant restatement of the tool name and nothing that doesn't earn its place.

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 single-parameter read tool with no output schema, the description covers purpose, validation, error handling, and cost. What's light is the return contract (denomination/precision of lamports vs SOL and response shape), which an agent must infer.

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?

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning: the address must decode to exactly 32 bytes and invalid input yields a clean error, which is more than the schema's "base58, 32-44 characters". That extra validity constraint helps an agent predict failure modes.

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 a specific verb and resource ("Read a Solana address balance") and names the returned values (lamports and SOL). Specifying Solana distinguishes it from siblings like btc_balance and chain_balance, though it doesn't explicitly contrast with token_balance for SPL tokens.

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 rather than stated: the agent can infer it should call this for a native SOL balance on a given address. There is no explicit when-to-use/when-not or pointer to sibling balance tools for other chains or token accounts.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.