Skip to main content
Glama

zFinia Intelligence

Foundry Outcome Router

foundry_outcome_router

Use 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

TableJSON Schema
NameRequiredDescriptionDefault
inputsNoCaller-supplied facts required to produce the outcome. Do not send secrets or ask Foundry to fetch URLs.
latencyNo
evidenceNo
freshnessNo
max_priceNoOptional maximum USDC atomic units the buyer will pay.
objectiveYesOutcome 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_metadataNoOptional non-secret buyer hints. Secret-like keys are stripped and never persisted.
required_outputNoOptional desired output shape or fields.
preferred_protocolNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
planNo
resultYes
statusYes
outcomeYes
evidenceYes
economicsYes
value_addNo
latency_msNo
limitationsYes
execution_idYes
request_fingerprintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / objective / description
      Previous value: -"Outcome the buyer needs. Foundry chooses the execution plan; do not describe supplier topology. goal, task, outcome, and query are accepted aliases. Well-known capability fields sent at the top level are folded into inputs. #RRGGBB pairs in the objective are used as contrast inputs when inputs.foreground/background are omitted."New value: +"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."
  2. Changed1 schema field changed
    • changedInput schema / properties / objective / description
      Previous value: -"Outcome the buyer needs. Foundry chooses the execution plan; do not describe supplier topology."New value: +"Outcome the buyer needs. Foundry chooses the execution plan; do not describe supplier topology. goal, task, outcome, and query are accepted aliases. Well-known capability fields sent at the top level are folded into inputs. #RRGGBB pairs in the objective are used as contrast inputs when inputs.foreground/background are omitted."
  3. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full transparency burden, and it delivers: it discloses that tools/call quotes first and may return PAYMENT_REQUIRED, that batches pay sequentially on live rails, that POST /v1/router/quote is unpaid, that the MCP does not fetch URLs, that MCP does not pay, and that GET /v1/router is free. This is unusually detailed behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is tightly packed and front-loaded with the decisional use case, then moves into input semantics and payment behavior. It is dense but contains minimal filler; the only cost is that some clauses, like the price list in parentheses, are terse enough to require careful parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter router with nested objects and an output schema, the description covers the essential selection and invocation context: objective handling, input restrictions, payment behavior, protocol choices, and free/introspection endpoints. Minor gaps remain for how required_output and buyer_metadata interact with routing, but the enums and output schema reduce the need for further elaboration.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 56%, so the description meaningfully compensates by explaining objective aliases, top-level field folding, fg/bg aliases, and how #RRGGBB pairs in the objective become contrast inputs. Enum-based parameters like latency, evidence, and preferred_protocol remain self-explanatory, and max_price and inputs already have schema descriptions, so the overall parameter semantics are strong.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states an explicit, specialized purpose: use this tool when you need an outcome but do not already know which zFinia utility to call. It specifies the key input ('Send objective') and aliases, and clearly positions it as a router rather than a direct utility, distinguishing it from sibling tools like accessibility_contrast_calculator.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The first sentence gives a crisp when-to-use rule with an implied exclusion: if you already know the utility, you should not use this router. It also adds practical usage constraints around payment rails, quote behavior, URL fetching, and protocol options, helping an agent decide whether and how to invoke it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources