# set_primary_domain

Get the link to set a domain as your wallet's primary (the name shown by default for your address). Setting primary is completed in the browser — the website handles it and your wallet signs there (the MCP does NOT build or broadcast the transaction). Use when the user says "make X.xrp my primary" or "set X.xrpfi as my main domain". The wallet must already own the domain.

Agent View of the PolicyLayer registry record for `set_primary_domain`. HTML page: https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/set-primary-domain

## Facts

- Tool: `set_primary_domain`
- Server: XRPName (`@xrpname/xrpname-mcp`) — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server.md
- Install: `npx -y @xrpname/xrpname-mcp`
- Homepage: https://github.com/XRPDomains/xrpname-mcp-server
- Risk category: Write (Medium risk)
- Registry record: grade C, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 1 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | yes | The domain to set as primary, e.g. "alice.xrp". |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_primary_domain",
    "arguments": {
      "domain": "<domain>"
    }
  }
}
```

## Why set_primary_domain is rated Medium

An AI agent can call set_primary_domain faster than any human can review: one bad instruction and it creates or modifies resources in XRPName by the hundred, each call as confident as the last.

## Use case

AI agents use set_primary_domain to create or update resources in XRPName, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your XRPName environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches XRPName:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "set_primary_domain": {
      "limits": [
        {
          "counter": "set_primary_domain_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on XRPName (9)

- `check_domains` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/check-domains.md
- `check_order_status` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/check-order-status.md
- `check_tx_status` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/check-tx-status.md
- `get_domain_profile` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/get-domain-profile.md
- `get_pending_offers` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/get-pending-offers.md
- `get_portfolio` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/get-portfolio.md
- `recommend_domain` — Read — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/recommend-domain.md
- `register_domain` — Write — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/register-domain.md
- `resolve_address` — Write — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/resolve-address.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=io-github-xrpdomains-xrpname-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/io-github-xrpdomains-xrpname-mcp-server
