# get_portfolio

List all XRPL domains owned by a wallet address. Use when the user asks "what domains do I own?", "show me my domains", or wants to see another wallet's holdings. Returns each domain with its TLD, length, primary flag, subname flag, and quick-action URLs. (nftoken_id, image, and mint time are not included here — use get_domain_profile for one domain.) Requires an XRPL r... address.

Agent View of the PolicyLayer registry record for `get_portfolio`. HTML page: https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/get-portfolio

## Facts

- Tool: `get_portfolio`
- 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: Read (Low risk)
- Registry record: grade C, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 4 (1 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `sort` | string | no | Sort order. "recent" keeps the backend order. |
| `limit` | integer | no | Max domains to return. |
| `address` | string | yes | XRPL r... address whose domains to list. |
| `filter_tld` | string | no | Filter by TLD, e.g. ".xrp", ".xrpfi", ".rlusd", or "all". |

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": "get_portfolio",
    "arguments": {
      "address": "<address>"
    }
  }
}
```

## Why get_portfolio is rated Low

Retrieves and lists domain ownership data without modification or side effects.

From the tool's own definition: "List all XRPL domains owned by a wallet address. Returns each domain."

## Use case

AI agents call get_portfolio to retrieve information from XRPName without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

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

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_portfolio": {}
  }
}
```

## 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
- `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
- `set_primary_domain` — Write — https://policylayer.com/tools/io-github-xrpdomains-xrpname-mcp-server/set-primary-domain.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
