Skip to main content
Glama

iota_coins

Retrieve coin objects for an address to estimate gas costs and query token balances on the IOTA blockchain.

Instructions

Get coin objects for an address (useful for gas estimation and token queries)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesOwner address (0x...)
coin_typeNoCoin type (default: 0x2::iota::IOTA)

Implementation Reference

  • The `iota_coins` tool is registered using `server.tool`. The handler directly executes an RPC call `iota_getCoins` to retrieve coin objects for a given address.
    server.tool(
      "iota_coins",
      "Get coin objects for an address (useful for gas estimation and token queries)",
      {
        address: z.string().describe("Owner address (0x...)"),
        coin_type: z.string().optional().describe("Coin type (default: 0x2::iota::IOTA)"),
      },
      async ({ address, coin_type }) =>
        text(await rpc("iota_getCoins", [address, coin_type || null, null, 10]))
    );
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 of behavioral disclosure. It states the tool 'Get[s] coin objects' (implying a read operation) and mentions utility, but doesn't cover critical aspects like error handling, rate limits, authentication needs, or what 'coin objects' entail (e.g., format, pagination). This is a significant gap for a tool with no annotation coverage.

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 with zero waste. It is front-loaded with the core purpose ('Get coin objects for an address') and adds useful context without redundancy, making it appropriately sized and well-structured.

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

Completeness2/5

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

Given the complexity of a blockchain query tool with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits (e.g., response format, errors), doesn't fully guide usage, and relies on the schema for parameters. For a tool in this context, more comprehensive information is needed to assist the agent effectively.

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 the schema already documents both parameters ('address' and 'coin_type') with descriptions. The description adds no additional parameter semantics beyond what's in the schema, such as examples or constraints, but it implies the tool is for querying coins, which aligns with the parameters. 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.

Purpose4/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: 'Get coin objects for an address' with a specific verb ('Get') and resource ('coin objects'), and it adds context about utility ('useful for gas estimation and token queries'). However, it doesn't explicitly differentiate from sibling tools like 'iota_wallet_balance' or 'iota_objects_by_owner', which might have overlapping functionality.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions general utility ('gas estimation and token queries') but doesn't specify prerequisites, exclusions, or compare it to sibling tools like 'iota_wallet_balance' or 'iota_objects_by_owner', leaving the agent to infer usage context.

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/Scottcjn/iota-agent-mcp'

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