Skip to main content
Glama

Unit conversion (paid: 0.001 RLUSD / 0.001 USDC on Base / 0.001 RLUSD on Base via x402)

unit_convert
Read-only

Paid: 0.001 RLUSD per call via x402 on XRPL mainnet (xrpl:0), or 0.001 USDC on Base (eip155:8453). Pay per call, solves one question: Convert a value between units using fixed NIST-style factors. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.

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": {
      "value": "<value>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "unit_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
valueYes
payment_signatureNoOptional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior5/5

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

Annotations already mark this readOnly, non-destructive, open-world and non-idempotent; the description goes well beyond them by disclosing the metered cost (0.001 RLUSD/USDC per call), the two payment rails and chain IDs, the exact failure mode (isError with an x402 PaymentRequired object containing a fresh invoiceId), and the retry mechanism via _meta["x402/payment"] or payment_signature. It also clarifies that unpaid calls cost nothing, which is the single most important economic fact for an agent deciding whether to call. No contradiction with idempotentHint=false — a paid retry loop is inherently non-idempotent.

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 content is dense and mostly earns its place, but it is badly front-loaded: the pricing and settlement rails come before the agent learns what the tool does, and the cost figure is stated twice (in the title and again in the first sentence). The actual purpose sentence should lead.

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

Completeness3/5

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

With no output schema, the description must describe the success return shape, and it does not — it only specifies the error path (PaymentRequired object). The payment side is unusually complete, but an agent still cannot predict the success payload or the accepted unit namespace for a 4-parameter tool with 25% schema coverage.

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

Parameters2/5

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

Schema description coverage is only 25% — only payment_signature is documented, and the description repeats that mechanism rather than explaining it. The three required parameters (value, from, to) get nothing beyond their names: no unit vocabulary, no case/abbreviation rules, no note that value is a string (e.g., for precision) rather than a number. The description does not compensate for the coverage gap.

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 verb and resource: "Convert a value between units using fixed NIST-style factors." That is unambiguous and distinguishable from the unrelated sibling utilities. It loses a point only because the purpose sentence is buried after two sentences of pricing boilerplate, and no sibling is named as a boundary case.

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 when-to-use condition is implied ("solves one question: Convert a value between units") and the payment/retry flow is spelled out clearly. But there is no guidance on what unit identifiers are accepted, whether conversion is case-sensitive, or what to do when a unit is unknown — the practical boundaries of usage are left unstated.

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