set_primary_name
Set the primary ENS name (reverse resolution) for a wallet address.
This controls what name is displayed when someone looks up your Ethereum address. For example, instead of seeing "0x1234...abcd", they'd see "myname.eth".
Requirements:
You must own or control the ENS name
The name's ETH address record must point to your wallet
Only the wallet owner can set their own primary name
When a user says "set my primary name" / "make X my primary", JUST call this tool — it bundles BOTH transactions (set the ETH address record + set the reverse record) into a single sign-card. Do NOT also call set_ens_records separately for this. After the user signs, verify it landed with get_primary_name.
Only one primary name per address — setting a new one replaces the previous.
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": {
"name": "<name>",
"walletAddress": "<walletAddress>"
},
"name": "set_primary_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ENS name to set as primary (e.g. "myname.eth") | |
| walletAddress | Yes | Wallet address to set the primary name for (must sign the transaction) |