Skip to main content
Glama

eth_getProtocolVersion

Retrieve the current Ethereum protocol version from a node to verify client compatibility and supported features. Specify network (default mainnet) for targeted queries.

Instructions

Returns the current Ethereum protocol version used by the node. Useful for checking client compatibility and supported features.

Args:

  • network (string, optional): Ethereum network to query, defaults to 'mainnet'

Returns:

  • Hex-encoded string representing the protocol version number (e.g., '0x41' for version 65)

Examples:

  • "Get mainnet protocol version": {}

  • "Get Sepolia protocol version": { "network": "sepolia" }

Errors:

  • InternalError: When Infura API is unavailable or method not supported

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoThe Ethereum network to query, e.g., 'mainnet' or 'sepolia'.mainnet
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable.json
Behavior4/5

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

With no annotations provided, the description carries the behavioral clarity burden. It describes the return format (hex-encoded string) and possible errors (InternalError). However, it does not mention rate limits or authentication needs, though for a read-only call this is acceptable. No contradictions.

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?

The description is well-structured with clear sections (Args, Returns, Examples, Errors) and uses concise language. Every sentence adds value without redundancy. It is front-loaded with the core purpose.

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?

For a simple read-only tool, the description covers the main use case, but it does not mention that it's a standard Ethereum JSON-RPC method or provide context about when the protocol version might differ from chain ID. Missing explanation of the 'response_format' parameter reduces completeness.

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?

Although the input schema covers both parameters (100% coverage), the description only discusses the 'network' parameter with examples and default. It completely omits the 'response_format' parameter, which is documented in the schema but not in the description. This leaves a gap for an AI to understand output options.

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?

The description clearly states the tool returns the current Ethereum protocol version, specifying the resource and action. It also explains its usefulness for checking client compatibility and supported features, distinguishing it from sibling tools.

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?

The description provides a general use case (checking compatibility) but does not explicitly guide when to use this tool versus alternatives, nor does it mention when not to use it. The examples help but lack comparative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Qbandev/infura-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server