Skip to main content
Glama

ScorpTech x402 Tools

Unit Convert

unit_convert
Read-onlyIdempotent

Unit conversion across 14 categories with exact defined factors: length, mass, volume (US and imperial), area, speed, time, data (SI kB vs IEC KiB, bits vs bytes), pressure, energy, power, angle, frequency, temperature (C, F, K, Rankine) and fuel economy (mpg US/UK, L/100 km, km/L). Common names and abbreviations accepted; optionally lists the value in every unit of the category. Returns JSON with: value, from, category, to, result. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/unit-convert

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 (omit with all=true)
allNoAlso return the value in every unit of the category
fromYesSource unit, e.g. mi, kg, F, GiB, psi, mpg
valueYesQuantity to convert
precisionNoSignificant digits in the output

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the bar is lower, yet the description adds real context: exact defined conversion factors, a documented JSON return shape, and an explicit paid-call model ($0.001 USDC per successful call via x402 on Base or Solana) plus an HTTPS alternative. It stops short of describing error behavior for incompatible units or how ambiguous unit strings are resolved.

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?

A single dense paragraph that is front-loaded with the capability, followed by accepted-input behavior, return shape, and pricing/transport. The long category list earns its place because unit coverage is the core differentiator.

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?

With no output schema, the description supplies the return keys (value, from, category, to, result) and covers the payment/transport dimension, which is unusual and valuable. It is slightly incomplete on failure modes (invalid or mismatched units) and on whether `to` can be omitted when `all=false`.

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 100%, so baseline is 3, but the description adds meaning beyond the schema by stating that common names and abbreviations are accepted (directly informing `from`/`to`) and by explaining that `all=true` returns every unit in the category. Precision and temperature-scale handling are only partially elaborated.

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?

States a specific verb (convert) and resource (units), enumerating the 14 supported categories and the exact unit families (SI kB vs IEC KiB, mpg US/UK, L/100 km). An agent can tell immediately this is the general unit conversion tool rather than base_convert or timestamp_convert.

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 is implied by the enumerated categories and by the note that `all=true` lists the value in every unit of the category, which is a useful decision hint. However, there is no explicit when-to-use vs when-not guidance and no routing to siblings such as base_convert or timestamp_convert for the overlapping cases.

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