Skip to main content
Glama

Crypto & Web Data API for Agents

ENS: resolve name.eth to an address or an address to its primary name

ens
Read-only

ENS: resolve name.eth to an address or an address to its primary name. Forward (name -> address) and verified reverse (address -> primary .eth name) ENS resolution on Ethereum mainnet, plus profile text records: avatar, url, description, email, X/Twitter, GitHub, Telegram, Discord. Give either name or address. Cached 10 min. Price $0.005 per call (x402: USDC on Base or Solana).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ens"
  }
}

Input Schema

NameRequiredDescriptionDefault
txNoAlternative to the X-Payment-Tx header
nameNo
addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Well beyond the supplied readOnlyHint/openWorldHint annotations, it discloses a 10-minute cache, a $0.005 per-call price, and the x402 payment rail (USDC on Base or Solana), which is critical pre-invocation context for an agent. It omits failure behavior for unpaid or malformed requests and doesn't clarify how the payment requirement interacts with the tx parameter, holding it below a 5.

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 is front-loaded, followed by scope, record list, input rule, then cost/caching facts — a logical order with no filler sentences. The opening sentence duplicates the title verbatim, which is mild redundancy but no real waste.

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 three-parameter read-only tool with no output schema, it covers chain scope, both resolution directions, the returned record types, cost, and cache TTL. Remaining gaps are edge-case behavior (both inputs supplied, payment failure) rather than anything an agent needs to select the tool.

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 only 33%; the description gives meaning for name and address (a .eth name vs a 0x address, either-or) but says nothing about the third parameter, tx, and doesn't address the empty-string defaults in the schema. It partially compensates for the coverage gap but leaves the payment parameter unexplained.

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 names both directions of a specific resource operation — forward name-to-address lookup and verified reverse lookup to the primary .eth name — plus enumerated text records. That is far more specific than the title alone and clearly separates it from siblings like evm_address or domain.

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?

"Give either name or address" tells the agent how to invoke it and implies the mutual-exclusive input model, and "on Ethereum mainnet" scopes where it applies. It stops short of stating what happens if both are supplied or when an agent should prefer a sibling resolver.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources