Skip to main content
Glama

net_getVersion

Get the current Ethereum network ID to confirm whether you are on mainnet, Sepolia, or another network.

Instructions

Returns the current network ID. Useful for identifying which Ethereum network the node is connected to (1=mainnet, 11155111=sepolia, etc.).

Args:

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

Returns:

  • String representing the network ID (e.g., '1' for mainnet, '11155111' for Sepolia)

Examples:

  • "Get mainnet network ID": {}

  • "Verify Sepolia network ID": { "network": "sepolia" }

Errors:

  • InternalError: When Infura API is unavailable

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?

No annotations provided. Description discloses error conditions (InternalError when Infura API unavailable), default behavior (defaults to mainnet), and return format (string). Lacks info on rate limits or idempotency, but is fairly transparent.

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?

Description is well-structured with clear sections (Args, Returns, Examples, Errors). No unnecessary words, front-loaded with purpose. Earns its place.

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 2 parameters and no output schema, description explains return value (string with examples) and errors. Missing explanation of response_format parameter. Overall fairly complete but could cover response_format and differentiate from sibling tools.

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%, baseline 3. Description adds examples and default for the 'network' parameter but neglects to mention 'response_format' parameter or its enum values. Schema already documents both parameters, so description adds marginal value.

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?

Description clearly states it returns the current network ID and explains its purpose (identifying Ethereum network). Includes examples with mainnet and Sepolia, and mentions network IDs. No tautology.

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?

Description mentions it's useful for identifying which Ethereum network, but does not explicitly differentiate from sibling tools like eth_chainId or provide when-not-to-use guidance. However, it includes error handling context and examples.

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