Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

Unit converter with exact factors (NIST SP 811) ($0.0021/call)

unit_convert
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] Converts a value between units exactly, with rational factors from NIST SP 811 and HB 44 (inch = 0.0254 m, pound = 0.45359237 kg, US gallon = 231 in3): length, area, volume (US and imperial), mass, temperature, time, speed and data size (kB vs KiB). Returns the exact fraction, a decimal, the factor and its source. Input: value (decimal, 1e6 or 1/3), from, optional to (default all), decimals. Offline.

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": {
      "value": "<value>",
      "from": "<from>"
    },
    "name": "unit_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget unit of the same kind, or all (default): every unit of that kind
fromYesUnit of the value, e.g. mi, km, lb, kg, F, C, GiB, MB, gal, l, mph, acre (symbols or names)
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
valueYesNumber to convert: decimal (12.5), scientific (1e6) or fraction (1/3), up to 100 characters
decimalsNoDecimal places in "value", 0-30 (default 12); "fraction" is always exact12

Output Schema

NameRequiredDescriptionDefault
toolNo
cacheNo
inputNo
notesNo
_trialNoPresent when the call was a free trial call.
factorNo
resultNo
resultsNo
decimalsNo
providerNo
dimensionNo
price_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "input",
      +        "dimension"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "decimals": {
      +      "type": "integer"
      +    },
      +    "dimension": {
      +      "type": "string"
      +    },
      +    "factor": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "input": {
      +      "type": "object"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "result": {
      +      "properties": {
      +        "exact": {
      +          "type": "boolean"
      +        },
      +        "fraction": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "number": {
      +          "type": "number"
      +        },
      +        "scientific": {
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        },
      +        "unit": {
      +          "type": "string"
      +        },
      +        "value": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "exact": {
      +            "type": "boolean"
      +          },
      +          "fraction": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "number": {
      +            "type": "number"
      +          },
      +          "scientific": {
      +            "type": "string"
      +          },
      +          "source": {
      +            "type": "string"
      +          },
      +          "unit": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds real value beyond that: exact rational factors with cited sources (NIST SP 811, HB 44), the concrete conversion constants, the shape of the response (exact fraction, decimal, factor and source), the offline guarantee, and the trial allowance of 3 calls per IP per UTC day.

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

Conciseness4/5

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

The pricing line is front-loaded and the rest is one dense block that moves from capability to factors to return shape to inputs. Every clause carries information, though the stacked parentheses and mixed concerns (billing, units, return format, parameters) make it busier than it needs to be.

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, annotation-rich, output-schema-bearing tool, this covers inputs, exactness guarantees, data sources, offline behavior and billing. The one material omission is routing versus time_convert, and there is no note on error behavior for mismatched unit kinds, but neither is required for correct invocation.

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 coverage is 100%, so every parameter is already documented, including the "to" = all default and the accepted value formats. The description's input summary (value formats, from, optional to, decimals) largely restates the schema, so it neither compensates for a gap nor adds much new meaning; baseline 3 applies.

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?

States a specific verb and resource ("Converts a value between units exactly") and enumerates the covered unit kinds, so the agent knows it is a general unit-conversion tool rather than something else. It does not differentiate itself from the sibling time_convert even though "time" is listed among supported kinds, leaving a genuine ambiguity about which tool handles time conversions.

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 gives useful calling conventions (optional "to" defaults to all units, "trial": true or try_free for the free path) but never says when to use this instead of the alternatives, particularly time_convert for time units. Usage is implied by the enumeration of unit kinds rather than stated as guidance.

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