agent-tools
pre-payment

Route one public task to a matching free or paid Ontario tool

Changed on

Free deterministic routing of one public task to Ontario's free and paid tools. Returns the matching tool and a decision (free_only, run_free_preflight, or paid_recommended with the tool's price, network and budget check against the request's wallet-enabled flag, Base network support and max_usdc ceiling). Natural x402 endpoint-verification tasks route to the free readiness verifier, with the optional 0.002 USDC settlement-backed receipt disclosed. Provider publication tasks route to the 0.50 USDC x402 service-profile product and its free validator. Existing paid profiles route to the 0.10 USDC evidence refresh and its free refresh validator. Empty or commonly wrapped calls return task examples instead of guessing a purchase. The router never calls a tool, signs a payload, increases a budget, or spends funds.

post/api/agent/tool-quote

Request

  • Base URL: https://ontarioprotocol.com
  • URL: https://ontarioprotocol.com/api/agent/tool-quote
  • Auth: none required

Request body

free_preflight_completeboolean
max_usdcstring
networkstring
taskstring required

Canonical public task. Compatibility aliases query, goal, intent, prompt, need, description, and objective are accepted at runtime, including inside input, request, arguments, or params wrappers.

wallet_enabledboolean

Response

Free input guidance, free or gated route, listing refresh route, or paid-recommended tool quote

Changes