Foundry Outcome Router
foundry_outcome_routerUse when you need an outcome and do not already know which zFinia utility to call. Send objective (aliases: goal, task, outcome, query) plus inputs. Top-level colour/field/html/cursor keys fold into inputs. tools/call quotes first and returns PAYMENT_REQUIRED for an already-live x402 resource at that resource's unchanged price (contrast 1000, DCC 3000, catalog-offer 100000, changes-since 10000). Batches are sequential pays on those same live rails. POST /v1/router/quote is unpaid. No URL fetching. MCP does not pay. GET /v1/router for the free contract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Caller-supplied facts required to produce the outcome. Do not send secrets or ask Foundry to fetch URLs. | |
| latency | No | ||
| evidence | No | ||
| freshness | No | ||
| max_price | No | Optional maximum USDC atomic units the buyer will pay. | |
| objective | Yes | Outcome the buyer needs. Foundry chooses the execution plan; do not describe supplier topology. goal, task, outcome, and query are accepted aliases. Product names, service IDs, and live routes are valid outcomes. Well-known capability fields sent at the top level are folded into inputs. fg/bg alias foreground/background. #RRGGBB pairs in the objective are used as contrast inputs when inputs.foreground/background are omitted. | |
| buyer_metadata | No | Optional non-secret buyer hints. Secret-like keys are stripped and never persisted. | |
| required_output | No | Optional desired output shape or fields. | |
| preferred_protocol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| result | Yes | ||
| status | Yes | ||
| outcome | Yes | ||
| evidence | Yes | ||
| economics | Yes | ||
| value_add | No | ||
| latency_ms | No | ||
| limitations | Yes | ||
| execution_id | Yes | ||
| request_fingerprint | No |