Skip to main content
Glama

evm_get_transaction_history

Retrieve an address's sent transaction count on an EVM chain and get guidance plus explorer link for full transaction history.

Instructions

Get transaction history count and guidance for retrieving full transaction details.

Returns the transaction count (nonce) for an address and provides guidance on how to retrieve full transaction history using block explorers. Standard RPC doesn't provide full history.

CRITICAL RULES:

  • Returns transaction count (nonce), not full transaction list

  • Full transaction history requires block explorer API or indexer

  • Transaction count = number of transactions SENT from this address

  • Does not include received transactions or internal transactions

PARAMETERS:

  • chain: EVM chain to query (required)

    • Transaction count is chain-specific

    • Different chains have different explorer APIs

  • address: Ethereum address to query (required)

    • Format: 0x followed by 40 hexadecimal characters

    • Transaction count for both EOA and contracts

    • Example: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

  • limit: Desired transaction count (optional, not implemented)

    • Included for API compatibility

    • Standard RPC doesn't support paginated transaction history

    • Use block explorer APIs for full history

EXAMPLES: ✅ Get transaction count: {chain: "ethereum", address: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}

✅ Check if address has sent transactions: {chain: "polygon", address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}

✅ Verify account activity: {chain: "bsc", address: "0x1234567890123456789012345678901234567890"}

❌ Invalid - expecting full transaction list: {chain: "ethereum", address: "0x...", limit: 100} // Only returns count

❌ Invalid - wrong address format: {chain: "polygon", address: "742d35Cc..."}

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

OUTPUT STRUCTURE: • success: Boolean indicating operation success • address: Queried address • transactionCount: Number of transactions sent from this address • guidance: Instructions for retrieving full transaction history • explorerUrl: Block explorer link for manual viewing • executionTime: Time taken in milliseconds

COMMON MISTAKES:

  • Expecting array of transactions (only returns count)

  • Confusing sent transactions with received transactions

  • Not using block explorer APIs for full history

  • Assuming zero count means no activity (could have received funds)

USE CASES:

  • Verify account has transaction history

  • Check nonce before sending transaction

  • Determine if address is active

  • Guide users to block explorer for details

  • Quick account activity check

ALTERNATIVES FOR FULL HISTORY:

  • Etherscan API: eth.getTransactionsByAddress()

  • Polygonscan API: Similar to Etherscan

  • The Graph: Indexed blockchain data

  • Alchemy/Infura: Enhanced APIs with transaction history

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

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_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain to query
limitNoDesired limit (not implemented - use block explorer APIs)
addressYesEthereum address (0x... - 42 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does so well: it discloses that 'limit' is accepted but unimplemented, that the count covers only SENT transactions (excluding received and internal), that counts are chain-specific, and it documents the full return shape including guidance, explorerUrl and executionTime. It loses a point for padding with irrelevant material (gas pricing advice, testnet token notes, and Linux package-manager remarks) that does not help an agent call this read-only count query.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical caveat is correctly front-loaded at the top, which is the right structural choice. However, the description is bloated with sections that have nothing to do with calling this tool: gas cost guidance per chain, testnet token/faucet notes, alternatives to external APIs, and an irrelevant 'LINUX-SPECIFIC NOTES' block about package managers and xdg-open.

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?

There is no output schema, and the description compensates by enumerating every returned field. It also lists all seven supported chains matching the schema enum. An agent has everything needed to call it correctly and interpret the result, though the surrounding noise slightly dilutes the signal.

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 the baseline is 3, but the description genuinely adds meaning: it explains that the count is chain-specific, gives the address format with a concrete example, and clarifies that 'limit' exists only for API compatibility and has no effect on the result. That last point is the key semantic an agent would otherwise get wrong.

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 states a specific behavior: it returns the transaction count (nonce) for an address plus guidance, and it explicitly warns that this is NOT a transaction list. That is much clearer than the tool name, which promises 'transaction history'. It does not differentiate from the sibling evm_get_transaction_count, which appears to do the same thing, so it falls short of a 5.

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?

Usage is well covered: a USE CASES list (verify activity, check nonce before sending), worked valid/invalid examples, and named alternatives for full history (Etherscan, Polygonscan, The Graph, Alchemy/Infura). The gap is that alternatives are all external APIs, and no sibling tool such as evm_get_transaction or evm_get_transaction_count is named as the alternative for related needs.

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