format_units
Convert smallest unit values (e.g., wei) to human-readable amounts. Provide the value and decimals to get a clear number.
Instructions
Convert smallest unit value to human-readable format (e.g., wei to ETH)
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>"
},
"name": "format_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value in smallest unit (e.g., wei) | |
| decimals | No | Number of decimals |