Skip to main content
Glama

get_chain_nonce

Read-only

An address's transaction count (nonce) via eth_getTransactionCount — the next nonce to use and total outgoing transactions, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The read settlement and trading agents make to build and sequence transactions. Live public RPC; one paid call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_chain_nonce"
  }
}

Input Schema

NameRequiredDescriptionDefault
x_paymentNoSigned x402 payment payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/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 new facts — it hits a live public RPC, and it costs 'one paid call'. It also discloses the supported chains (Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis) and that both the pending nonce and total outgoing count are returned. It does not mention failure modes such as rate limits or unpaid-call rejection, keeping it below a 5.

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?

Three short sentences, front-loaded with the identifier and the underlying RPC method, followed by interpretation and then operating constraints. Each sentence carries information; the chain list is the only mild bulk, and it is relevant because no chain parameter exists.

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?

With annotations covering safety and the description covering return semantics and cost, most of what an agent needs is present. However, the schema exposes only x_payment and no address or chain argument, while the description presumes an 'address' — it never says how that address is bound or which chain is used when several are supported. For a multi-chain nonce read with no output schema, that gap matters.

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% for the single x_payment parameter, so baseline would be 3. The description earns above baseline by flagging 'one paid call', which explains why a signed x402 payment payload is required, and by enumerating the chain scope. It does not explain how the target address is supplied, which leaves some ambiguity.

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 names a concrete verb and resource ('An address's transaction count (nonce)'), ties it to the underlying eth_getTransactionCount method, and clarifies both interpretations of the value (next nonce to use and total outgoing transactions). That distinguishes it from sibling reads such as chain_transaction_status or chain_native_balance without needing the schema.

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

Usage Guidelines4/5

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

It states the operating context clearly: 'The read settlement and trading agents make to build and sequence transactions', which tells an agent to call this before constructing or ordering transactions. There are no explicit exclusions or named alternatives, so it stops short of full when/when-not guidance.

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.