Skip to main content
Glama

unit-convert

Exact unit conversion with dimensional analysis (NIST SP 811) — Converts up to 100 values between units for an agent that needs the exact factor and a refusal when the units do not match: SI and NIST SP 811 length, mass, time, volume, pressure, energy, power, temperature, with compound expressions like kg*m/s^2. Rejects incompatible dimensions, converts absolute temperatures affinely through kelvin and temperature differences linearly, and converts mass to vol

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": {
      "items": "<items>"
    },
    "name": "unit-convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesConversions to run.
densityNoDefault density for items that cross mass and volume.
precisionNoSignificant digits of the reported value. Default 12.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses refusal on incompatible dimensions, refusal with candidates on ambiguous bare units, affine conversion through kelvin for absolute temperatures versus linear conversion for differences, batch cap of 100 values, and that density is caller-supplied rather than looked up. Missing only operational details such as response shape and error structure, but the safety and failure semantics are well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is front-loaded with the core purpose and the sizeable middle section earns its place, but the prose is a single run-on sentence with heavy parentheticals, and the definition ends abruptly mid-word ("mass to vol"), which reads as an unproofed, truncated artifact.

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 batch conversion tool with a fully documented schema and no output schema, the description covers the critical semantics: dimension checking, ambiguity refusal, temperature kind handling, density requirement, and batch limits. The truncated final clause is the one real gap, since it leaves the mass-to-volume story incomplete in prose even though the schema covers density.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents items, density, precision, kind, claimed, and relTolerance in detail. The description adds dimensional-analysis framing and the mass↔volume density requirement, but those points largely restate what the schema properties already say, and the truncation removes the one clause that would have added net-new parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Exact unit conversion with dimensional analysis (NIST SP 811)" states a specific verb and resource, and the enumeration of supported dimensions (length, mass, time, volume, pressure, energy, power, temperature) plus compound expressions makes the scope unambiguous relative to the convert-flavored siblings. The only blemish is that the final clause is cut off mid-word ("converts mass to vol"), leaving the mass/volume capability half-stated.

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 context is implied by "for an agent that needs the exact factor and a refusal when the units do not match," which tells the agent this tool is for exact/scalar conversion rather than approximate or domain-specific conversion. However, there is no explicit when-not guidance and no named alternative tool to route to when, say, the caller wants an approximate or lookup-based answer.

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