Skip to main content
Glama

xrplme_get_country_schema

Field schema for one country. REQUIRES PAYMENT.
  XRPL   : 1 XRP  via x_payment_signature + x_inv_id
  Solana : $1.00 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

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 burden and does substantial work: it discloses the payment requirement, the two price points (1 XRP / $1.00 USDC), the settlement semantics ('verified AND settled via the local facilitator'), and the precedence rule between payment methods. Gaps remain on failure behavior, whether payment is consumed on error, and what the returned schema looks like.

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-loads purpose and payment requirement, then a compact Args block. The two-line payment listing and the parenthetical about the t54 facilitator both earn their place; minor redundancy between the payment header and the per-arg notes.

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 4-param paid tool with no annotations and no output schema, the description covers the payment model, all arguments, and the precedence rule. It stops short of describing the shape of the returned field schema, which is the tool's actual payload and would help an agent decide whether to pay.

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 coverage is 0%, so the description must compensate and largely does: slug gets a concrete example, x_payment_signature is specified as a JSON string containing tx_hash AND signedTxBlob with the reason both are needed, and x_sol_payload is defined as base64 x402 PaymentPayload with its override behavior. x_inv_id remains thin ('Invoice ID'), leaving its origin and format unstated.

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?

States a specific resource and outcome: 'Field schema for one country', naming the slug argument's purpose. It is distinguishable from data-oriented siblings like xrplme_get_country_data only by implication, since it never explicitly contrasts returning a schema with returning data.

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?

It clearly frames the call as paid and explains that supplying x_sol_payload supersedes the XRPL path ('the XRPL arguments are then ignored'), which is real routing guidance. However, it gives no guidance on when to choose this tool over xrplme_get_country_data or xrplme_get_country_status, and no prerequisites (wallet setup, how to obtain x_inv_id) are stated.

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.