Skip to main content
Glama

XRPLHub — XRPLScore & XRPL actions

get_lending_exposure

A borrower's TOTAL XLS-66 lending exposure across ALL loan brokers in one call — the XRP Ledger has no aggregate borrower-debt object, so a broker carrying first-loss capital cannot see a borrower's total leverage elsewhere. Returns: outstanding by asset, loan count, distinct broker count, defaults / impairments / overdue, XRPLHub's XRPLScore, and an observation history summary. IMPORTANT: XLS-66 keeps CURRENT exposure only. A defaulted loan zeroes its own amounts (the flag is the credit event, not the balance), and either the borrower or the broker can delete a paid or defaulted loan to reclaim the borrower's reserve — a borrower can erase evidence of their own default. Every call here persists an immutable Merkle-anchored snapshot. disposition = 'no-loans-ever' means we have never observed a loan (NOT proof of none); 'history-only' means loans were seen before but none are on the ledger now. XLS-66 is not yet enabled on mainnet — until it is, this returns amendment-not-active with the live XRPLScore. Not underwriting or credit advice. Params: borrower (r..., required). Free via MCP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
borrowerYesXRPL classic address (r..., 25–35 chars) of the borrower

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

The description transparently states that every call persists an immutable Merkle-anchored snapshot, which is a side effect an agent should know. It also clarifies the limitation of 'no-loans-ever' (not proof of none) and the risk of borrowers erasing defaults. However, it does not explicitly state whether the tool is read-only or has any destructive capabilities, though the snapshot mention implies a write. The description is largely transparent about behavioral nuances.

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

Conciseness5/5

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

The description is dense but well-structured. It front-loads the main purpose, then provides important caveats, return value hints, and operational notes. All sentences contribute value—some are warnings, some explain state meanings, and some clarify the mainnet status. No fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all essential context: what the tool does, what it returns (outstanding by asset, loan count, etc.), the meaning of disposition states, mainnet status, and a disclaimer. It also mentions the free pricing. Given there is no output schema, the description compensates by listing return fields. No critical missing information for an agent to decide to call this tool.

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

Parameters4/5

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

The parameter 'borrower' is described with details: XRPL classic address format (r..., 25–35 chars) and required status. This matches the schema. The description adds contextual value by explaining the address format and the required constraint, but there is only one parameter and no enums or nested objects, so the coverage is adequate. A small deduction because the description does not elaborate on possible edge cases (e.g., invalid address handling), but it is clear enough.

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 the tool's purpose: to retrieve a borrower's total XLS-66 lending exposure across all loan brokers. It specifies the resource (borrower exposure data) and the action (get). It also differentiates itself from a sibling tool (get_lending_history) by focusing on aggregate exposure across brokers, which is distinct.

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?

The description provides explicit guidance on when to use this tool: when needing total lending exposure across all brokers. It also includes important caveats about XLS-66 not being enabled on mainnet, the meaning of 'disposition' values, and the fact that deletions can erase default evidence. This is actionable guidance for an agent.

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.