Skip to main content
Glama

convert_units

Convert numeric values between units of temperature, length, and weight. Specify value, source unit, and target unit to get the conversion.

Instructions

Convert between units.

Args: value: Numeric value to convert from_unit: Unit to convert from to_unit: Unit to convert to

Supported conversions:

  • Temperature: celsius, fahrenheit, kelvin

  • Length: meter, kilometer, mile, foot, inch

  • Weight: kilogram, gram, pound, ounce

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
to_unitYes
from_unitYes
Behavior3/5

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

With no annotations, the description fully describes the conversion functionality and supported units. However, it does not disclose error handling, precision, or constraints beyond the listed unit strings, which is adequate for a simple tool but lacks completeness.

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?

The description is concise: a clear summary, parameter explanations, and a bulleted list of conversions. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers inputs and supported conversions but omits output format (e.g., return type or structure) and precision details. Since there is no output schema, this information would be helpful for an AI agent.

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?

The description adds meaning beyond the bare schema types by explaining each parameter's role and listing acceptable values for from_unit and to_unit. Given zero schema description coverage, this significantly aids understanding.

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 'Convert between units' and lists specific supported conversions (temperature, length, weight), distinguishing it from sibling tools like calculate or get_weather.

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 lists supported conversions, implying usage for unit conversion, but does not explicitly state when to use this tool versus alternatives (e.g., calculate for arithmetic). No exclusion or alternative guidance is provided.

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/elcaiseri/mcp-ai-agent-server'

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