Skip to main content
Glama

evm_get_transaction_count

Retrieve the number of transactions sent from an address (nonce) on a specified EVM chain, at the latest, earliest, pending, or a chosen block, to verify account activity and set transaction nonces.

Instructions

Get the number of transactions sent from an address (nonce)

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

Input Schema

NameRequiredDescriptionDefault
chainYes
addressYesAddress to check
blockTagNoBlock number or "latest", "earliest", "pending"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does little: it never states that this is a read-only, network-backed chain query, nor how blockTag changes the result (pending nonce vs mined nonce is a meaningful distinction for nonce lookups). Rate limits, caching, and error behavior for an invalid address are unmentioned.

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?

A single tight sentence with the core information front-loaded and no filler. It is efficient, though its brevity reflects under-specification rather than disciplined trimming.

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?

Because no output schema exists, the parenthetical '(nonce)' is load-bearing and correctly tells the agent what integer is returned. However, for a 3-parameter multi-chain tool with a historical blockTag, the definition omits the blockTag semantics and the enumeration of supported chains that an agent needs to call it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67%: address and blockTag are documented in the schema, but chain only has an enum with no explanation. The description adds no parameter-level meaning beyond the schema — it doesn't explain why blockTag matters or whether 'pending' includes unmined transactions, which is exactly the gap the description should fill for a nonce tool.

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 names a specific verb ('Get') and resource ('number of transactions sent from an address'), and parenthetically maps it to 'nonce', so an agent knows exactly what metric is produced. It does not distinguish this from nearby siblings such as evm_get_account_info or evm_get_transaction_history, which likely surface overlapping account data.

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?

There is no guidance on when to prefer this over evm_get_account_info, evm_get_transaction_history, or evm_get_transaction_analytics, all of which could plausibly touch an address's activity. Nothing is said about choosing a blockTag (latest vs pending vs historical) or about prerequisites, so usage must be inferred entirely from the name.

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