Skip to main content
Glama

XRPLME Country Intelligence

xrplme_get_country_data

Latest data + freshness for one country. REQUIRES PAYMENT.
  XRPL   : 0.5 XRP  via x_payment_signature + x_inv_id
  Solana : 0.25 USDC via x_sol_payload

Args:
    slug: Country slug (e.g., "thailand")
    x_payment_signature: JSON string containing tx_hash AND signedTxBlob
        (hex-encoded signed XRPL tx). Both are required: the t54
        facilitator decodes the blob to bind the on-chain InvoiceID.
    x_inv_id: Invoice ID
    x_sol_payload: OPTIONAL. base64 of an x402 PaymentPayload paying USDC
        on Solana. When present it is verified AND settled via the local
        facilitator; the XRPL arguments are then ignored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
x_inv_idNo
x_sol_payloadNo
x_payment_signatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does well: it discloses the exact costs (0.5 XRP / 0.25 USDC), the settlement path (local facilitator; the t54 facilitator decodes the blob to bind the on-chain InvoiceID), and a precedence rule (when x_sol_payload is present the XRPL arguments are ignored). It stops short of describing failure/refund behavior or whether data is returned on partial payment.

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

Conciseness4/5

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

Front-loaded correctly, with the purpose and the hard payment requirement in the first two lines before any detail. The Args block is well organized, though it partly duplicates schema field names and the indented formatting adds length without adding much beyond clarity.

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?

For a payment-gated read with no annotations, no output schema, and no schema-level parameter descriptions, the definition covers the essentials an agent needs to attempt a call: cost, both payment paths, and their precedence. Remaining gaps are what the tool returns on success versus on unverifiable payment, and any retry/replay semantics for the invoice.

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?

Schema description coverage is 0%, so the description must compensate, and it largely does: slug is given with an example, x_payment_signature is explained as a JSON string carrying both tx_hash and signedTxBlob (hex-encoded), and x_sol_payload is described as optional base64 of an x402 PaymentPayload. x_inv_id is only glossed as 'Invoice ID' with no format or source, and the description never states explicitly that only slug is required at the schema level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb+resource+scope: retrieving the latest data plus a freshness indicator for exactly one country. That is enough to distinguish it from list-oriented siblings like xrplme_list_countries, but it never explicitly contrasts itself with xrplme_get_country_schema or xrplme_get_country_status, which are close enough that an explicit distinction would help.

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

Usage Guidelines3/5

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

The description clearly signals the precondition (REQUIRES PAYMENT) and lays out two payment rails, which is a real usage constraint. However, it never says when to choose this tool over siblings such as get_country_status or get_country_schema, nor what happens if payment is omitted or fails. Usage is implied rather than guided.

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.