Skip to main content
Glama

ISO 8601 duration (paid: 0.001 RLUSD / 0.001 USDC on Base / 0.001 RLUSD on Base via x402)

iso_duration
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: Parse an ISO 8601 duration or add it to a start instant. 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": {
      "duration": "<duration>"
    },
    "name": "iso_duration"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNo
startNo
durationYes
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

B3.3/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, and non-idempotent hints, but the description adds meaningful behavior: the x402 payment gate, that failure returns isError with a PaymentRequired object and a fresh invoiceId (consistent with idempotentHint=false), and that unpaid calls are free. It omits any description of the successful return value despite there being no output schema.

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?

Two sentences, but the first is a dense pricing/network string that pushes the actual function to the middle. The payment retry detail earns its place; the repeated per-chain pricing (also in the title) does not need to 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?

For a small 4-parameter tool with no output schema, the payment flow is well covered, but the core contract is not: undefined 'op' values and no explanation of what a successful parse result looks like. An agent can pay correctly yet still guess at how to invoke the actual duration logic.

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 coverage is only 25%, so the description must compensate. It explains payment_signature and the _meta["x402/payment"] alternative well, but says nothing about the 'op' parameter (no enum, unclear legal values), 'start', or 'duration' formats, which are exactly the inputs an agent must construct correctly.

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 description states a concrete verb+resource: "Parse an ISO 8601 duration or add it to a start instant." That distinguishes it from siblings like cron_next, timezone_dst, or unit_convert. It is clear, but the purpose is buried mid-sentence behind pricing boilerplate rather than stated first.

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 gives a useful payment retry protocol (first call unpaid returns PaymentRequired with a fresh invoiceId, retry with signed payload) and frames the scope as "solves one question." But it never says when to choose this over timezone_dst/cron_next/get_business_day, nor how to choose between the parse and add modes.

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