Skip to main content
Glama

units.convert

Read-onlyIdempotent

Convert physical quantities between compatible units using a decimal magnitude string; unknown or mismatched dimensions return errors, and Celsius/Fahrenheit require the temperature tool.

Instructions

pint 로 물리 단위를 변환한다. magnitude 는 Decimal 문자열, from_unit 과 to_unit 은 pint 단위 이름(meter, foot, km 등)이고 차원이 다르거나 모르는 단위는 오류이다. 결과 magnitude 는 문자열이며 1E+3 같은 지수 표기가 나올 수 있다. 섭씨·화씨는 끝자리 오차가 생기므로 units.temperature 를 쓴다.

Input Schema

NameRequiredDescriptionDefault
to_unitYes
from_unitYes
magnitudeYes

Output Schema

NameRequiredDescriptionDefault
unitYes
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
magnitudeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations the description discloses real behavioral traits: dimensional mismatch or unknown units raise an error, and the output magnitude is a string that may use exponent notation such as 1E+3. It stops short of describing any rounding behaviour for the general case, but given an output schema exists this is solid disclosure.

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?

Four compact sentences, each contributing something distinct: purpose, parameter formats, error condition, output format, and the temperature reroute. Nothing is repeated and the most decision-relevant content comes first.

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

Completeness5/5

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

For a three-parameter read-only converter with an output schema, the description covers input formats, failure modes, output quirks, and the one dangerous alternative. Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters5/5

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

With 0% schema description coverage the description carries the full burden and does so: magnitude is a Decimal string, from_unit and to_unit are pint unit names with concrete examples (meter, foot, km). All three parameters gain meaning not present in the bare schema titles.

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 names a specific verb and resource (physical unit conversion via pint) and explicitly distinguishes itself from units.temperature for Celsius/Fahrenheit. An agent can tell exactly what this tool does and which sibling handles the temperature edge case.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives one explicit exclusion: use units.temperature for Celsius/Fahrenheit because of trailing-digit rounding. It does not address the other unit-specific siblings (units.pressure_convert, units.energy_convert, units.data_size_convert, units.time_small_convert), leaving the agent to infer which converter handles which dimension.

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