Skip to main content
Glama

chain_nonce

Read-only

Account nonce — Transaction count (nonce) of an address at latest and pending, number of pending txs and the next nonce to use (address=). Chains: base (default), ethereum, arbitrum, optimism, polygon via chain=. Price: $0.002 USDC (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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "chain_nonce"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
addressYes0x000000000000000000000000000000000000dEaD

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 cover the safety profile (readOnly, non-destructive, open-world), and the description adds valuable context beyond them: the cost of $0.002 USDC per call paid via x402 on Base, which is a real prerequisite an agent must know. It also discloses the returned fields and the default chain, though it omits rate limits or failure behavior.

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?

A single dense sentence pair that front-loads what the tool returns, then chains, then price. Every clause carries information; nothing is padding.

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 two-parameter read tool with no output schema, the description covers inputs, allowed chain values, returned values, and payment cost. Only edge behavior (errors, multi-chain payment handling) is left implicit, which is a minor gap.

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 baseline is 3, but the description meaningfully adds meaning by enumerating the accepted chain values (base default, ethereum, arbitrum, optimism, polygon) that the schema does not list as an enum. The address= hint is minor but points to the required input.

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?

States a specific resource (account nonce) and precisely what it returns: transaction count at latest and pending, pending tx count, and next nonce to use. This clearly separates it from siblings like chain_block_number or chain_receipt.

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 nonce/address framing rather than stated; there is no explicit when-to-use or when-not-to-use guidance relative to alternatives. An agent can infer the purpose but is given no routing rules.

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.

Resources