Skip to main content
Glama

Account trust lines

xrpl_account_lines
Read-onlyIdempotent

One page of an account's trust lines, with an opaque cursor for the next page. When to use: To list every trust line of an account (balances, limits, freeze and authorization flags), page by page. Prefer another tool: For a quick capped overview with the XRP balance, use /v1/xrpl/account/{address}/summary; for issued totals of a token, use the token endpoint. Example: xrpl_account_lines {"address":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"} Paid: 0.01452 USDC or 0.0121 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.0025 EUR-denominated units (approx 400 calls per bundle) or 0.003 USD-denominated units (approx 273 calls per bundle).

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": {
      "address": "<address>"
    },
    "name": "xrpl_account_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
peerNoOnly lines with this counterparty (classic address)
limitNoLines per page: an integer from 10 to 400 (default 100)
markerNoOpaque cursor from the previous page's `marker`, for the same address
addressYesValid classic XRPL account address (r..., checksum verified)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "Meta": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "age_seconds": {
      -          "description": "Age of the data at response time",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "as_of": {
      -          "description": "When the data was read from the ledger",
      -          "format": "date-time",
      -          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -          "type": "string"
      -        },
      -        "cache": {
      -          "enum": [
      -            "hit",
      -            "miss",
      -            "stale"
      -          ],
      -          "type": "string"
      -        },
      -        "ledger_index": {
      -          "description": "Validated ledger the data comes from",
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        },
      -        "stale": {
      -          "description": "True when served past its fresh TTL (stale-on-error)",
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "ledger_index",
      -        "as_of",
      -        "age_seconds",
      -        "cache",
      -        "stale"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "properties": {
      -    "address": {
      -      "type": "string"
      -    },
      -    "limit": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "lines": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "authorized": {
      -            "type": "boolean"
      -          },
      -          "balance": {
      -            "description": "Positive: the peer owes the account; negative: the account owes",
      -            "type": "string"
      -          },
      -          "currency": {
      -            "description": "Canonical currency code (3 characters or 40 hex)",
      -            "type": "string"
      -          },
      -          "currency_ascii": {
      -            "description": "Readable text of a 40-hex currency code; null when not printable ASCII; absent for XRP and 3-character codes",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "freeze": {
      -            "type": "boolean"
      -          },
      -          "freeze_peer": {
      -            "type": "boolean"
      -          },
      -          "limit": {
      -            "description": "Limit the account sets",
      -            "type": "string"
      -          },
      -          "no_ripple": {
      -            "type": "boolean"
      -          },
      -          "no_ripple_peer": {
      -            "type": "boolean"
      -          },
      -          "peer": {
      -            "description": "Counterparty address",
      -            "type": "string"
      -          },
      -          "peer_authorized": {
      -            "type": "boolean"
      -          },
      -          "peer_limit": {
      -            "description": "Limit the peer sets",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "peer",
      -          "currency",
      -          "balance",
      -          "limit",
      -          "peer_limit",
      -          "no_ripple",
      -          "no_ripple_peer",
      -          "freeze",
      -          "freeze_peer",
      -          "authorized",
      -          "peer_authorized"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "marker": {
      -      "description": "Opaque cursor for the next page (send as `marker`); null on the last page",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/Meta"
      -    },
      -    "peer": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "address",
      -    "limit",
      -    "peer",
      -    "lines",
      -    "marker",
      -    "meta"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavioral context: results are paginated one page at a time via an opaque cursor, and each line carries balances, limits, freeze and authorization flags. The extensive pricing/billing details are operational rather than behavioral, but they do add context an agent may need.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and routing sentences are front-loaded and efficient. However, the two-sentence pricing block with USDC/EURC rates and prepaid-credit arithmetic is long relative to the functional content and competes for attention with the usage guidance.

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?

There is no output schema, so the description must convey what comes back — and it does, naming the per-line fields and the cursor for continuation. Combined with 100% param coverage and the alternative-tool routing, an agent has enough to call this correctly; only the response envelope shape is unstated.

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 description coverage is 100%, so address, peer, limit and marker are all documented in the schema already. The description reinforces paging ('page by page', opaque cursor) and shows a sample call with the address, but adds no syntax or constraint detail beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb and resource — one page of an account's trust lines with an opaque next-page cursor — and immediately names what it is not (account summary, token endpoint). An agent can distinguish this from xrpl_account_summary and xrpl_token without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Has an explicit 'When to use' clause plus a 'Prefer another tool' clause naming two alternatives and the conditions that select them (quick capped overview with XRP balance; issued totals of a token). This is exactly the when/when-not/alternative structure the dimension rewards.

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