Skip to main content
Glama

Omnikalc calculators

Convert units

convert_units
Read-onlyIdempotent

Convert a value between two units (length, mass, volume, temperature, speed, area, energy, cooking measures, fuel economy…). Units can be given as a symbol, name or plural in the chosen language ("kg", "pounds", "°C", "cups").

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "convert_units"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget unit.
fromYesSource unit.
valueYes
languageNoLanguage of the calculators and of the returned links (en, fr, es). Defaults to en.en
quantityNoOnly to disambiguate a unit that exists in several quantities (e.g. "oz" for weight or volume).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorldHint=false, so the safety profile is fully covered. The description adds genuine behavioral context by disclosing input tolerance (symbols, names, plurals, localized forms) which is not in the annotations, but says nothing about result format, precision/rounding, or what happens on incompatible unit pairs.

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 with the core action front-loaded and the qualifiers after. The enumerated unit families are dense but directly useful for the applicability decision; nothing is padding.

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?

With five parameters and no output schema, the description does the important work of covering input interpretation and domain scope. The remaining gap is returns: the schema hints at 'returned links' via the language parameter, but the description never says what comes back (converted value, echoed units, links), which an agent needs for no-output-schema tooling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 80%, so the baseline is 3. The description earns an extra point by explaining that 'from'/'to' accept symbols, names or plurals in the chosen language, which meaningfully extends the terse schema text ('Source unit.' / 'Target unit.') and clarifies how 'language' interacts with unit strings.

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 a specific verb and resource ('Convert a value between two units') and immediately enumerates the supported quantity families plus the accepted unit formats. An agent can tell this apart from calculate / get_calculator / search_calculators without opening the 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?

Usage is implied rather than stated: the parenthetical quantity list tells the agent when the tool applies, and the unit-format sentence tells it what inputs are accepted. However, there is no explicit when-not guidance and no reference to the sibling tools (e.g. when to use calculate instead), so the agent must infer the boundary.

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