x420_units_convert
Converts length, mass, area, volume, and temperature between common metric and US units, including roofing squares, and returns a JSON result for each paid call.
Instructions
Unit converter: Converts length, mass, area (incl. roofing squares), volume and temperature between common metric and US units. Pure arithmetic. Not professional, legal, insurance, engineering, medical, financial or tax advice. PAID: $0.01 USDC per call, settled on Base via x402 from the wallet in X420_MCP_WALLET_PRIVATE_KEY (real money). Returns: JSON: value, from, to, category, result - the deliverable plus X420's signed receipt and the settlement transaction. Example input: {"value":"2400","from":"sqft","to":"square"}.
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>",
"to": "<to>"
},
"name": "x420_units_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | target unit | |
| from | Yes | source unit (m, ft, in, mi, kg, lb, m2, sqft, acre, square, l, gal, c, f, k, ...) | |
| value | Yes | number to convert |