Skip to main content
Glama

chain_nonce

Read-onlyIdempotent

Retrieve an address or ENS name's confirmed and pending transaction nonce before signing, preventing nonce collisions.

Instructions

[Trading Data API] Transaction count (nonce) for an address or ENS name: confirmed nonce plus pending nonce, so an agent can sign the next transaction without a collision.

Example: /v1/chain-nonce?address=0xB71C06dAC44c91bc997FB84C247DeEF676F4A9f6&chain=base

Use when you need an address's confirmed and pending transaction count before building a transaction. Not for balances.

Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).

Input Schema

NameRequiredDescriptionDefault
chainNoOptional. ethereum, base, arbitrum, optimism, polygon (default base).
addressYesRequired. A 0x address or an ENS name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/openWorldHint, so the description goes further by disclosing the paywall: x402 USDC on Base, free with an API key, and that a bare HTTP 402 carries a price quote rather than a failure. That last point is genuinely useful behavioral context an agent could otherwise misread as an error, though failure modes for an unresolvable ENS name or bad chain are not described.

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?

Purpose and usage are front-loaded before the example and pricing details, and every sentence is on-topic. The pricing sentence is slightly long relative to its value, but it earns its place because the 402 behavior is counterintuitive.

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 definition covers what is returned at a conceptual level (confirmed plus pending nonce) and explains the payment path. It does not name the response field names, which would be the remaining gap for an agent parsing the result.

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%, documenting both address (0x or ENS) and chain (with the five supported values and base default), so the description need not repeat them. The worked example reinforces the shape of a call but adds no new constraint beyond the schema — baseline 3.

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 — transaction count (nonce) for an address or ENS name — and specifies that both confirmed and pending nonces are returned. The phrase 'Not for balances' explicitly separates it from chain_balance and chain_token_balance among the siblings.

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?

'Use when you need an address's confirmed and pending transaction count before building a transaction' gives a clear triggering condition, and 'Not for balances' gives an exclusion. It stops short of naming the specific alternative tool (chain_balance) the way an ideal definition would, but the intent is unambiguous.

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

Deploy Server

Other Tools