Skip to main content
Glama

mechacut

num_format

Deterministic number/currency/percent formatting from CLOSED locale (13) and currency (20) tables, Decimal-based: 1234.567 -> "1,234.567", fr-FR EUR currency -> "1 234,57 €", "12.34%". Free.

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>"
    },
    "name": "num_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNonumber
valueYesnumber or numeric string
localeNoen-US
currencyNoISO code, required for currency
decimalsNo0-30; default per style
groupingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 load alone. It does disclose genuinely useful behavior: deterministic output, Decimal-based arithmetic, and formatting constrained to closed tables of 13 locales and 20 currencies. It omits what happens on an unsupported locale/currency (error vs. fallback) and whether output differs from input formatting in any surprising way.

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 lead clause front-loads the capability and the examples do real work in one line. The dangling one-word 'Free.' sentence is unexplained and adds ambiguity rather than value.

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 six-parameter tool with no annotations and no output schema, the definition should close more gaps than it does. The closed-table limits are a valuable addition, but error behavior for unsupported locale/currency and the meaning of grouping and decimals remain unaddressed.

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 coverage is 50%, so half the parameters arrive with no description. The description compensates partially by revealing that locale and currency are drawn from closed lists of 13 and 20 entries, which constrains those two fields meaningfully, and the examples imply default decimals per style. It says nothing about grouping or the 0–30 decimals range, so the uncovered half stays uncovered.

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 concrete verb (format) and three resource types (number, currency, percent), and backs it up with worked input→output examples. It stops short of differentiating itself from nearby siblings such as num_parse, num_round, or format_convert, leaving the agent to infer the boundary.

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 pick this tool over num_parse or num_round, and no preconditions are spelled out. The trailing 'Free.' is the only usage-flavored remark and reads as a cost note rather than routing guidance.

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.