Skip to main content
Glama

set_ens_records

Set ENS resolver records for your domain covering addresses, text, content hash, and ENSIP-25/26 agent metadata, and return transaction calldata ready to sign.

Instructions

Set ENS resolver records for a name you own. Returns encoded transaction calldata ready to sign and broadcast.

Supports address records (ETH, BTC, SOL, etc.), text records (avatar, description, url, social handles, AI agent metadata), content hash (IPFS/IPNS), ENSIP-25 agent-registration records, and ENSIP-26 agent context and endpoint discovery.

Multiple records are batched into a single multicall transaction to save gas.

Common text record keys: avatar, description, url, email, com.twitter, com.github, com.discord, ai.agent, ai.purpose, ai.capabilities, ai.category.

ENSIP-25 support: Pass agentRegistration with registryAddress and agentId to automatically set the standardized agent-registration text record. This creates a verifiable on-chain binding between your ENS name and your agent identity in an ERC-8004 registry.

ENSIP-26 support: Pass agentContext to set the agent-context text record (free-form agent description). Pass agentEndpoints with protocol URLs (mcp, a2a, oasf, web) to set agent-endpoint[protocol] discovery records.

The returned transaction can be signed and submitted directly using any wallet framework (Coinbase AgentKit, ethers.js, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesENS name to set records for (e.g. "myagent.eth")
recordsYesRecords to set on the name
walletAddressYesWallet address that owns the name (must sign the transaction)
Behavior4/5

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

With no annotations, the description takes on full behavioral disclosure. It clearly states the output is transaction calldata ready to sign and broadcast, explains that multiple records are batched into a multicall for gas savings, and details ENSIP-25/26 support. It does not explicitly mention whether existing records are overwritten, but the ownership requirement and record-setting semantics are transparent enough.

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?

The description is front-loaded with the main purpose and then details supported record types and standards. It is somewhat long due to the technical depth (ENSIP-25/26 explanations), but every section adds value and avoids fluff. The structured flow from purpose to output format is logical.

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?

Given the tool's complexity (multiple record types, nested objects, no output schema), the description is quite complete. It covers supported record types, batching, common keys, ENSIP standards, and how to use the returned calldata. It lacks a note on overwriting behavior, but the core functionality and prerequisites are well explained.

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

Parameters5/5

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

The input schema already has 100% coverage, and the description adds substantial meaning beyond it. It gives examples of common text keys (avatar, description, url, ai.agent), explains the ENSIP-25/26 shorthand parameters (agentRegistration, agentContext, agentEndpoints), and clarifies how records map to standards. This greatly enhances parameter understanding.

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 it 'Set ENS resolver records for a name you own' and specifies the output as 'encoded transaction calldata ready to sign and broadcast.' It enumerates supported record types (address, text, content hash, ENSIP-25/26) and distinguishes itself from siblings by focusing on the records-setting function for a single ENS name.

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 implies usage by mentioning 'for a name you own' and requiring a walletAddress that must sign, but it does not explicitly state when to use this tool over alternatives like set_resolver or bulk_set_records. It provides context and prerequisites but lacks explicit exclusions or alternative comparisons.

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/eggybug42069/namewhisper-mcp'

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