{"schema_version":"v1","name_for_human":"Cross-Chain Route Optimizer","name_for_model":"cross_chain_route_optimizer","description_for_human":"Find the mathematically optimal cross-chain token swap route across Ethereum, Arbitrum, Base, Optimism, and Polygon.  Pays for itself in milliseconds via Lightning Network (L402).","description_for_model":"Use this tool when an autonomous agent needs to execute a DeFi token swap and wants the lowest True Execution Cost (TEC) route across multiple EVM chains.  The tool compares routes from 1inch and Li.Fi aggregators, then applies the TEC formula: TEC = slippage_cost + gas_cost + bridge_fee + time_penalty. It returns a ranked list of routes with full cost breakdowns so the agent can make an informed execution decision.\n\nWHEN TO CALL:\n- Agent is about to execute a token swap on any EVM chain\n- Agent needs to know if cross-chain routing is cheaper than same-chain\n- Agent wants to compare 1inch vs Li.Fi routes mathematically\n- Agent needs slippage estimates before committing to a transaction\n\nPAYMENT (L402 Lightning):\n1. Call POST /v1/quote WITHOUT an Authorization header.\n2. Server returns HTTP 402 with header: WWW-Authenticate: L402 macaroon=<token>, invoice=<BOLT11>\n3. Pay the BOLT11 Lightning invoice (typically 10 sats ≈ $0.006).\n4. Retry POST /v1/quote with header: Authorization: L402 <macaroon>:<preimage_hex>\n5. The server verifies SHA256(preimage) == payment_hash embedded in macaroon.\n\nDO NOT CALL if the agent has no Lightning Network payment capability.","auth":{"type":"oauth","authorization_url":"https://optimizer-api-crypto.onrender.com/docs","scope":"l402","verification_tokens":{}},"api":{"type":"openapi","url":"https://optimizer-api-crypto.onrender.com/openapi.json","is_user_authenticated":false},"logo_url":"https://optimizer-api-crypto.onrender.com/logo.png","contact_email":"peretzbatel123@gmail.com","legal_info_url":"https://optimizer-api-crypto.onrender.com/info"}