Skip to main content
Glama
starter-lite

starter-lite

by kitwire

Convert units

convert-units
Read-onlyIdempotent

Convert values between length, mass, volume, and temperature units, including metric and imperial options, by specifying the value and source/target units.

Instructions

Convert a value between units of length, mass, volume or temperature. Supported: mm, cm, m, km, in, ft, yd, mi, mg, g, kg, t, oz, lb, ml, l, m3, tsp, tbsp, cup, gal, c, f, k.

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, e.g. "mi" or "c"
fromYesSource unit, e.g. "km" or "f"
valueYesThe number to convert

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
kindYes
valueYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and a closed-world scope, so the safety profile is covered. The description adds the supported-unit inventory, which is useful context, but says nothing about failure behavior for invalid or cross-family units or about rounding/precision of results.

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?

Two sentences, purpose front-loaded, and the unit list is dense but earns its place as the only enumeration of accepted values. It is a wall of abbreviations, though, and would be tighter as a structured enum.

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 an output schema and full annotations present, the description needn't explain return values, and all three required parameters are documented. Minor gaps remain around cross-family rejection and numeric precision, but nothing prevents correct invocation.

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 100% so the baseline is 3, but the schema supplies no enums and only vague examples ("mi", "c"), making the description's enumerated unit list the only authoritative statement of valid values for 'from' and 'to' — genuine added meaning.

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 units") and names the four supported measurement families plus the exact unit tokens, so an agent knows precisely what this does and does not cover.

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 by the family list (length, mass, volume, temperature), which tells the agent the applicable domain, but there is no explicit guidance on edge cases such as mixing families (km to kg) or case sensitivity of unit tokens.

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

Deploy Server

Other Tools