Skip to main content
Glama

x402-length

Length: Convert a length value between millimeters, centimeters, meters, kilometers, inches, feet, yards, and miles. Provide value and from/to units.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoTo to process
fromNoFrom to process
valueNoValue to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "From to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "To to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; fortunately conversion is inherently a side-effect-free pure computation, which the wording ('Convert a length value') makes reasonably clear. It does not state the output format, precision, or behavior on invalid unit strings, so it adds only partial behavioral context beyond the obvious.

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 short sentences, front-loaded with the purpose and unit list, with no redundant or filler text. Every clause earns its place, including the input instruction.

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 simple stateless converter with no output schema and no annotations, the description supplies enough to call it correctly: the operation, the input shape, and the valid units. It stops short of stating the returned representation or error behavior for unsupported units, which is a minor residual gap.

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 nominally 100%, but the property descriptions are placeholders ('To to process', 'From to process'), so they convey nothing. The description compensates by clarifying the three inputs ('value and from/to units') and, more importantly, enumerating the eight valid unit names, which is the only source for allowed values since there are no enums.

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?

The description names a specific verb ('Convert'), the resource ('a length value'), and enumerates the supported units, so an agent immediately knows what it does. It does not, however, differentiate itself from the many overlapping siblings such as x402-cm-to-inches, x402-miles-to-km, or x402-units-convert, which would require explicit routing language.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of alternatives, despite an extremely crowded sibling space of pairwise converters and a general unit converter. The trailing 'Provide value and from/to units' is invocation mechanics, not selection guidance, so the agent is left to infer when this is preferable to the dedicated pair converters.

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