Skip to main content
Glama

x402-format-decimal

Format Decimal: Group the integer part of a number with commas and keep its decimals: 1234567.89 becomes '1,234,567.89'. 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  2. Changed1 schema field changed
    • 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?

With no annotations, the description carries the full behavioral burden. It does disclose the core transformation (group integer part, preserve decimals) plus a pricing/access constraint ('5 free trial calls per signed wallet'), but says nothing about negative numbers, zero-decimal inputs, malformed strings, or the return type.

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?

The operative sentence is front-loaded and the example removes ambiguity in one line. The trailing trial-call promo is not tool behavior and slightly dilutes an otherwise tight definition, but nothing is redundant or padded.

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 one-parameter pure-formatting tool with no output schema, the description plus example convey enough to call it correctly and anticipate the result shape. Edge-case behavior (negatives, rounding, invalid input) is the only meaningful gap.

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?

There is a single parameter 'value' with 0% schema description coverage, so the description must compensate. It implies the input is a numeric value via the example string '1234567.89' and states decimals are kept, which is useful, but it never clarifies accepted formats (numeric string vs. number, sign, scientific notation) or failure behavior.

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 names a specific verb (format) and resource (decimal number) and gives a concrete transformation example: 1234567.89 becomes '1,234,567.89'. It does not, however, distinguish itself from very close siblings such as x402-add-commas, x402-format-thousands, x402-format-fixed, or x402-format-integer, which appear to overlap heavily.

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 explicit when-to-use guidance and no exclusions. An agent choosing among add-commas, format-thousands, format-currency, and this tool receives no routing signal from the description; the only condition given is the implicit 'you have a decimal number to group.'

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