Skip to main content
Glama

unit-converter

Convert numeric values between 100+ units across 12 measurement categories. Accepts case-insensitive input and returns the converted value along with all common units in the same category.

Instructions

Converts between 100+ units across 12 categories: length, weight, temperature, volume, speed, area, energy, pressure, data, time, angle, frequency. Handles mixed-case inputs (km, KM, Km all work). Returns the converted value plus all common units in the same category. Zero external calls — pure math.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNoNumeric value to convert.
fromNoSource unit (e.g. 'kg', 'mi', 'f', 'kwh', 'mph', 'gb', 'psi'). Case-insensitive.
toNoTarget unit. If omitted, returns all units in the same category.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses case-insensitivity, return of all common units, and zero external calls. It does not mention error handling or limits, but covers key behavioral traits.

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, no fluff, front-loaded with scope and key features. Every sentence serves a purpose.

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 conversion tool with no output schema, description explains return value (converted value plus all common units) and covers parameters. Lacks error handling info but overall complete enough.

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%, baseline 3. Description adds value by noting case-insensitivity for 'from'/'to' and explaining the batch return when 'to' is omitted, going beyond schema descriptions.

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 description clearly states it converts between 100+ units across 12 categories, with specific verb 'converts' and resource 'units'. It distinguishes from all sibling tools as no other tool performs unit conversion.

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 implies usage for unit conversion but does not explicitly state when to use or provide alternatives. It mentions zero external calls as a benefit but lacks guidance on when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebrierfox/the-stall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server