Convert between units

Convert a value between units of length, mass, data size, time, speed or temperature. Supported units: mm, cm, m, km, in, ft, yd, mi, nmi, mg, g, kg, t, oz, lb, st, bit, byte, kb, kib, mb, mib, gb, gib, tb, tib, ms, s, min, h, day, week, mps, kph, mph, fps, knot, c, f, k. Use for exact conversions instead of approximating.

post/v1/tools/unit_convert

Request

  • Base URL: https://mcp.cleanor.app
  • URL: https://mcp.cleanor.app/v1/tools/unit_convert
  • Auth: none declared

Request body

valuenumber required

The numeric value to convert.

fromstring required

Source unit (e.g. "km", "lb", "mib", "c").

tostring required

Target unit (must be the same category as "from").

Response

Tool result: data (structured) and text (human-readable).

okboolean
toolstring
dataobject nullable
textstring
attributionstring

Changes

No recorded changes to this operation across all 1 revision of this API.