Skip to main content
Glama

EVM nonce

evm_nonce
Read-onlyIdempotent

Use when you need an account's transaction count on Base, Ethereum, Arbitrum, Polygon or Optimism: nonce at the latest block and the pending nonce (queued transactions in the node's pool). Returns the paid x402 request for your input (GET /evm/nonce, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Transaction count (latest and pending) only; for the coin balance use evm_native_balance, for a transaction by hash use evm_transaction or evm_receipt. First call each day returns the data itself, free; later calls return the paid request.

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

Input Schema

NameRequiredDescriptionDefault
chainNoChain; default basebase
addressYesAccount whose nonce is read (0x + 40 hex); returns the latest nonce and the pending nonce

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / address / description
      Previous value: -"0x address (40 hex)"New value: +"Account whose nonce is read (0x + 40 hex); returns the latest nonce and the pending nonce"
  2. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), but the description adds real commercial context: $0.001 per call, bad input refused before any charge, and a free first call each day. However, the return semantics are muddled — 'Returns the paid x402 request for your input' versus 'Call that URL with an x402 or MPP client to get the data' makes it unclear whether the caller receives data or a payment envelope, which is the single most important behavioral fact for this tool.

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?

The usage condition is correctly front-loaded and the sibling routing is packed into one dense clause. The payment-flow passage ('Returns the paid x402 request... Call that URL with an x402 or MPP client to get the data') repeats the same idea twice and could be collapsed, which keeps it short of a 5.

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?

With no output schema, the description carries the return-value burden and does state that both latest and pending nonces are returned across five named chains. The one shortfall is that the paid-request versus actual-data distinction, which is central to how an agent must act after the call, is left ambiguous.

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 coverage is 100%, with the address pattern and the chain enum already documented in the schema. The description reiterates the five chains and the latest-plus-pending result but adds no new parameter semantics such as address formatting edge cases or default-chain behavior beyond the schema's own default. Baseline 3 is appropriate.

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 verb and resource ('an account's transaction count', 'nonce at the latest block and the pending nonce') and enumerates the supported chains. It also names exactly what it is not: 'for the coin balance use evm_native_balance, for a transaction by hash use evm_transaction or evm_receipt.'

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

Usage Guidelines5/5

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

Opens with an explicit 'Use when you need...' condition, then adds exclusion routing to three sibling tools by name. The reader knows both when to pick this tool and which alternative to pick instead.

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