Ontario Free/Paid Purchase Router
ontario_purchase_routerFree deterministic pre-purchase routing across Ontario tools. Use this before any paid Ontario tool to decide whether the task is free-only, needs free preflight, or is eligible for a paid result after wallet, Base network, and explicit budget gates. Natural endpoint-verification tasks route to the free readiness verifier and disclose the optional 0.002 USDC settlement-backed receipt only when extra audit evidence is needed. Provider jobs such as publishing, registering, or making an x402 endpoint discoverable can route to the self-serve 0.50 USDC publication product after preflight. Existing paid profiles can route to the 0.10 USDC evidence refresh only after the free refresh validator. Empty calls return safe free discovery guidance instead of guessing a purchase. This tool never invokes another tool, signs a payload, or spends funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Public task description only; never include credentials or private customer data. | |
| network | No | Wallet policy network; Ontario paid tools currently require Base mainnet. | eip155:8453 |
| max_usdc | No | Optional explicit per-call USDC ceiling. The router never increases it. | |
| wallet_enabled | No | True only when the caller can locally sign an x402 PaymentPayload. | |
| free_preflight_complete | No | True only after the recommended free check has completed for this task. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gates | Yes | ||
| schema | Yes | ||
| status | Yes | ||
| privacy | No | ||
| reasons | No | ||
| decision | Yes | ||
| free_tool | No | ||
| next_action | Yes | ||
| payment_flow | No | ||
| selected_tool | Yes | ||
| task_category | Yes | ||
| input_guidance | No | Safe free task examples returned when an MCP caller invokes the router without a public task. | |
| paid_candidate | No | ||
| trust_boundary | Yes | ||
| router_follow_up | No | Non-spending request template for rerunning the router after the free preflight. | |
| optional_paid_upgrade | No | A non-recommended upgrade disclosed after a matching free route. The caller should stop after the free result unless the stated evidence condition applies. | |
| listing_maintenance_path | No | Present for existing-profile refresh intent. Gives the free validator followed by the gated paid refresher. | |
| provider_publication_path | No | Present for provider-publication intent. Gives the free launch-kit and validator followed by the gated paid publisher. |