Unit conversion
get_convertUse when an agent needs an exact unit conversion. Returns the value converted between units of length, mass, volume, time, data, speed, area, pressure, energy or temperature, to 12 significant digits. Mixing categories is a 400, never billed. Costs 0.005 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": "get_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | unit, e.g. km, lb, MB, F | |
| from | Yes | unit, e.g. mi, kg, GiB, C | |
| value | Yes | a plain number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_convert payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_convert | |
| tool | Yes | the tool that produced this payload |