Skip to main content
Glama
KonghuanSmart

calculate-mcp

ieee754_convert

Convert floating-point numbers to and from IEEE 754 binary/hex, decomposing into sign, exponent, and mantissa.

Instructions

Converts and decomposes between Float/Double numbers and IEEE 754 binary/hex layout (Sign, Exponent, Mantissa). For several operations or chained steps in one call, use batch_calc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesFloat number (e.g. 3.14159) or Hex representation (e.g. '0x3f800000', '0x400921fb54442d18')
precisionNoPrecision layout to analyze ('float32', 'float64', or 'both')both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It implies a pure conversion with no side effects and mentions the decomposition output (Sign/Exponent/Mantissa), but never states that it is a read-only/non-mutating operation, nor how the result is formatted or whether hex input must match the requested precision.

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

Conciseness5/5

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

Two sentences, zero filler, with the core operation front-loaded and the routing hint placed second. Every clause earns its place.

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 two-param pure converter with no output schema, the description covers the input/output domain well by naming the decomposed fields. Missing only the return structure and any precision-related caveats, which is a modest gap in an otherwise complete definition.

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 both 'value' (with format examples) and the 'precision' enum are already fully documented in the schema. The description adds no format or defaulting detail beyond what the schema provides, so the baseline of 3 applies.

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?

States specific verbs (converts, decomposes) plus the exact resource pair (Float/Double numbers vs IEEE 754 binary/hex layout) and even enumerates the resulting components (Sign, Exponent, Mantissa). This distinguishes it from the arithmetic siblings and from converters like int_convert or endian_swap.

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

Usage Guidelines4/5

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

Explicitly routes multi-step or chained work to batch_calc, which is a real alternative with a stated selecting condition. It does not, however, say when-not to use this tool versus int_convert or bitwise for adjacent numeric-representation tasks.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.