call_endpoint
Call any route in the Utility Grid by passing its path and JSON body. Automatically handles the x402 payment flow from 402 challenge to USDC payment on Base, returning the result.
Instructions
PAID (price varies by route, $0.001-$0.05) — the generic way to call ANY route in the Utility Grid. Pass the route path and a JSON body matching its input schema (use get_endpoint_spec first if unsure). Handles the full x402 payment flow automatically: fetches the 402 challenge, signs a USDC payment on Base, retries, and returns the result. Requires WALLET_PRIVATE_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body matching the route's input schema (see get_endpoint_spec) | |
| path | Yes | Route path, e.g. 'chess-moves' or '/geocode-city' |