Skip to main content
Glama

x402-format-currency

Format Currency: Format value as money through toLocaleString with style currency and the given ISO code, USD by default: 1234.5 becomes $1,234.50. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo
currencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / currency / description
      Removed value: -"Currency to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Currency to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose the default currency (USD) and shows the rendered result, plus a free-trial quota. It says nothing about invalid/unknown ISO codes, rounding or decimal-place behavior, handling of non-numeric strings for `value`, or negative amounts — relevant for a formatting function with zero annotation coverage.

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?

A single compact sentence with the example front-loaded, plus a short pricing note. The pricing emoji line is not about tool behavior but is brief and typical of this tool family, so it costs little. Nothing is redundant.

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 two-parameter, no-output-schema formatter the description covers the mechanism, the default, and the output shape via example, which is largely sufficient. It still leaves edge-case behavior (invalid currency code, rounding, negatives) and the sibling distinction unaddressed, which are the remaining gaps an agent would hit.

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

Parameters3/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. It does well for the `currency` parameter by naming it an ISO code and specifying the USD default, but the `value` parameter is only implied through the example '1234.5 becomes $1,234.50' — the schema types it as a string and the description never clarifies accepted input formats (string vs number, separators, negatives).

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 specific verb and resource (format a value as money) and pins the exact mechanism (toLocaleString with style=currency), backed by a concrete input→output example. It does not distinguish this tool from the very similar sibling x402-currency-format, nor from x402-format-thousands or x402-accounting-format, so an agent cannot tell them apart on the description alone.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus alternatives, no exclusions, and no note about the near-duplicate sibling x402-currency-format. The only guidance is implicit, from the example output. An agent must infer selection from the tool name.

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