{"name":"token_amount_convert","title":"Convert token amounts","description":"Converts between a human decimal amount and integer base units without ever rounding: too many decimals is an error. Decimals are never assumed: pass `decimals`, or an `asset` whose decimals are read from the chain (EVM: \"native\" or an ERC-20 token address, whose decimals() is read live from the chain; Aptos: any asset, with live decimals; an ambiguous symbol such as USDC returns AMBIGUOUS_INPUT with every option).","inputSchema":{"type":"object","properties":{"chain":{"description":"CAIP-2 chain id such as eip155:8453 (Base) or aptos:1; a bare EVM chain id number also works. Chain names like \"base\" are refused.","type":["string","number"]},"amount":{"type":"string"},"direction":{"type":"string","enum":["toBase","toHuman"]},"decimals":{"type":"integer","minimum":0,"maximum":77},"asset":{"type":"string"}},"required":["chain","amount","direction"],"additionalProperties":false},"example":{"chain":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"2.5","direction":"toBase"},"call":{"method":"POST","url":"https://logicnodes.io/v1/tools/token_amount_convert","body":"JSON object matching inputSchema"},"price":"free"}