Conduit Router — Governed MCP Routing

v1.6.0
org.aimlds/conduit-router Checked 1 day ago Published 6 days ago

Governed MCP routing: every agent call spend-capped, metered, sealed with a verifiable receipt.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

route_chat Route a chat completion

Send a chat completion through Conduit Router: policy-checked, budget-checked, metered, and audit-receipted. Uses your own stored provider keys (BYOK). Pin a model as "provider:model" or let your standing terms choose.

ParameterTypeDescription
messages *arrayOpenAI-shaped messages: [{role, content}] with role system|user|assistant|tool.
max_tokensnumberOptional cap on the completion's output tokens.
modelstringOptional pin: "provider:model" (e.g. "groq:llama-3.3-70b-versatile"), "custom:<endpoint_id>:<model>", or a bare catalog model id.
task_profilestringOptional routing profile: reasoning (deepest models), tool-use, or bulk (cheapest/fastest). Defaults to your standing terms.

route_and_prove Route a call and prove its receipt

One call that composes route_chat + get_receipt + verify_receipt: routes a chat completion through the same policy, budget, and metering pipeline, then fetches the minted audit receipt and verifies it against the chain. Returns the completion (or the route failure — blocked and failed attempts are receipted too, and their receipts are proved the same way), the charge lines, the proof block, and an explicit not_proven list naming what the proof does not cover.

ParameterTypeDescription
messages *arrayOpenAI-shaped messages: [{role, content}] with role system|user|assistant|tool.
max_tokensnumberOptional cap on the completion's output tokens.
modelstringOptional pin: "provider:model" (e.g. "groq:llama-3.3-70b-versatile"), "custom:<endpoint_id>:<model>", or a bare catalog model id.
task_profilestringOptional routing profile: reasoning (deepest models), tool-use, or bulk (cheapest/fastest). Defaults to your standing terms.

list_models List routable models

The public model catalog: every model the router can serve, with provider, free-tier flag, task profiles, and pricing source/as-of.

get_usage Check usage and budget headroom

Your cumulative meter (requests, tokens, provider cost, router charge), today's spend against your daily budget, and which providers you have keys stored for.

get_receipt Fetch a call receipt

One of your calls' audit receipts (id like "rcpt_12") with its hash-chain proof: record hash validity, successor linkage, and the current chain head.

ParameterTypeDescription
receipt_id *stringThe receipt id from a routed call, e.g. "rcpt_12".

verify_receipt Verify a receipt record

Cryptographically verify a receipt record (yours or anyone's) against the router's audit chain: the record hash must recompute and the stored record at that sequence must match.

ParameterTypeDescription
receipt *objectThe full audit record object from a receipt.

get_policy Read your standing terms

Your key's standing terms (mandate): task profile, per-request and daily budgets, model allowlist, fallback chain, region — plus kill-switch state.