Skip to main content
Glama

lossy-conversion

Does this value survive conversion to another numeric or spreadsheet type? Range, precision, leading zeros, E notation — Takes raw JSON literals (as written, so 9007199254740993, 1e400, -0, "007" and 0.10 are judged on their digits, not on a parsed double) and target types (binary64, binary32, int8..int64, uint8..uint64, PostgreSQL numeric(p,s), Arrow decimal128/decimal256, Parquet decimal, Excel cell, pandas int64) and reports for each pair whether the value is exact, lossy (rounded, truncated, leading zeros or sig

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lossy-conversion"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairsNoIdentifier or text values before and after a round trip through another system.
samplesNoRaw JSON scalar literals exactly as written, e.g. 9007199254740993, "007", 1e400, 0.10, null.
targetsNoTarget types: float64, float32, int8, int16, int32, int64, uint8, uint16, uint32, uint64, numeric(p,s), decimal128(p,s), decimal256(p,s), parquet-decimal(p,s), excel-number, pandas-int64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/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 add genuinely useful semantics (literals judged on their digits, not on a parsed double, with -0, 1e400 and "007" as examples) and names the exact/lossy verdict axis. However it never states the response shape (has_output_schema is false), the 200-pair / 12-target caps, or behavior on malformed literals — and the text is truncated mid-sentence, cutting off the lossy-case reporting detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loading is good (the core question comes first), but the body is a single runaway sentence built from stacked parentheses, and it terminates mid-word ("leading zeros or sig"), which is a visible defect an agent has to work around. Several clauses re-explain the same exact/lossy idea.

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

Completeness2/5

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

With no annotations and no output schema, the description must explain both safety/semantics and return values; it covers the former reasonably but the truncation removes the explanation of what is reported for lossy pairs, and volume limits are only discoverable in the schema. For a tool whose entire value is a per-pair verdict, missing result detail is a material 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?

Schema description coverage is 100%, so all three parameters are already documented; the description mostly restates the samples and targets semantics at the same level of detail. The one real addition — that string literals are judged by their written digits rather than parsed values — is valuable for interpreting samples, but the `pairs` parameter is not addressed in the visible text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening question states a precise verb-and-resource: for each (value, target type) pair it reports whether the conversion is exact or lossy. It explicitly enumerates the target families (binary64, int8..int64, numeric(p,s), decimal128/256, Excel cell, pandas int64), so an agent can tell this apart from siblings like float-stability or csv-roundtrip without opening a schema.

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 description makes the usage context inferable — check numeric/text fidelity against a target storage type — but never states when to prefer it over float-stability or csv-roundtrip, nor any prerequisites. It reads as a what-it-does statement rather than a routing rule, leaving the agent to infer selection.

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