Skip to content

DocsAI assistants (MCP)

MCP tools

Every tool the INFRO MCP server publishes: what it does, the scope it needs, its annotations and its arguments. Generated from the server's own tool registry.


The MCP server is served at https://mcp.infro.io/mcp.

Version 1.10.1. Generated from the server's tool registry. Money is estimated provider cost in USD (estimated_provider_cost_usd), never an INFRO charge; an unpriced amount is null. Times are ISO 8601 in UTC. Every entity carries a console_url.

Observe

get_overview

Organization overview. A summary of the organization, and the place to start when the person asks how their INFRO organization is doing. Returns the organization, its plan, which INFRO environment this is (production or sandbox), the current billing period with its bounds, estimated provider cost so far this period (USD), gateway requests against the plan's monthly allowance, open findings by severity, spend limits at 80% or more, and failing provider connections. A section this token cannot read is left out and listed under not_visible with the scope it needs — say so rather than guessing. Estimated provider cost is what the customer's own AI providers will bill them, never an INFRO charge. For breakdowns use query_usage; for individual requests use search_requests.

Needs any read scope · read-only, idempotent.

query_usage

Query usage and estimated cost. Aggregated gateway traffic over a window: requests, errors, error rate, tokens and units, estimated provider cost (USD) and unpriced requests — in total, as a time series, and optionally grouped by one dimension (group_by), or by up to three at once with then_by (group_by project, then_by [feature, model]; or workflow, then step, model): combinations ranked by cost, with no series. Dimensions: model, provider, connection, route, project, key, environment, endpoint, modality, workflow, step, feature, user (the customer's own end customer), member (team member), agent (coding agent), surface (gateway, playground or studio) or tag:<promoted key>. Every answer also has attribution_coverage (what share of requests carried a feature, workflow, step, end user, session, project: low coverage means a breakdown by it covers little; get_integration_guide shows how to send them) and prompt_cache (prompt tokens the providers reported as read from their cache). For cost per project, customer, feature, team member, coding agent, workflow or tag with averages and the change against the last cycle, get_cost_breakdown answers in one call. Use it for 'how much', 'which X costs most' and 'when did it change'. Use search_requests to see the individual requests behind a number. Groups are ranked by estimated cost; top are returned and the rest are folded into other. History is limited to the plan's window; window_clamped says when it moved from.

Needs analytics:read · read-only, idempotent.

period"last_hour" | "last_24h" | "last_7d" | "last_30d" | "this_month" | "last_month"
A preset window, in UTC. this_month and last_month are calendar months. Ignored when from is given.
fromstring
Window start, ISO 8601 (overrides period).
tostring
Window end, ISO 8601. Default: now.
granularity"hour" | "day" | "month"
Series bucket size. Default: hour for windows up to two days, else day.
group_by"model" | "modality" | "project" | "key" | "endpoint" | "provider" | "connection" | "route" | "environment" | "workflow" | "step" | "feature" | "user" | "member" | "agent" | "surface" | string
One dimension to break the totals down by, or tag:<key> for a promoted tag.
then_by"model" | "modality" | "project" | "key" | "endpoint" | "provider" | "connection" | "route" | "environment" | "workflow" | "step" | "feature" | "user" | "member" | "agent" | "surface" | string[]
Up to two more dimensions under group_by, for combinations (["feature", "model"]). Needs group_by.
projectstring
Only this project (proj_…).
environmentstring
Only requests whose key was in this environment (or several, comma-separated).
topinteger
Groups returned before the rest are folded into other.

get_cost_breakdown

Cost per project, customer, feature or team member. Estimated provider cost per project, customer (user: the organization's own end customer), feature, team member (member), coding agent (agent), workflow or promoted tag (tag:<key>): the figures of the console Summary's cost cards. For each dimension: how many values there were, the average per value, the largest top with their share and the change against the comparison window, and the cost that named no value. Default window: the budget cycle so far against the same days of the last cycle. A value whose requests are all unpriced has a null cost, never 0. Estimated provider cost is what the customer's own providers will bill them, never an INFRO charge. Use query_usage for a time series or other groupings.

Needs analytics:read · read-only, idempotent.

by"project" | "user" | "feature" | "member" | "agent" | "workflow" | string[]required
The dimensions, e.g. ["user", "feature"]. user is the end customer, member a team member, tag:<key> a promoted tag.
period"cycle" | "7d" | "30d" | "90d"
cycle (default): the budget cycle so far. Ignored when from is given.
fromstring
Window start, ISO 8601 (overrides period); compared with the same length before it.
tostring
Window end, ISO 8601. Default: now.
topinteger
Values listed per dimension.
projectstring
Only this project (proj_…).
environmentstring
Only requests whose key was in this environment (or several, comma-separated).

search_requests

Search requests. Find individual gateway requests by status, model, provider, connection, route, project, key, environment, finish reason, trace id, workflow, step, end user, tag or time window, sorted newest, slowest or costliest. Each row: id, time, project, model requested → served, provider and connection, status and error code, latency, tokens, estimated provider cost (USD) and cache result, attempt count, trace id. Prompts and completions are never returned (recorded content, when the organization records it, is read in the console). Use get_request for one request's attempts and routing; use query_usage for totals. Pass cursor (the previous result's next_cursor) for the next page.

Needs analytics:read · read-only, idempotent.

period"last_hour" | "last_24h" | "last_7d" | "last_30d" | "this_month" | "last_month"
A preset window, in UTC. this_month and last_month are calendar months. Ignored when from is given.
fromstring
Window start, ISO 8601 (overrides period).
tostring
Window end, ISO 8601. Default: now.
status"ok" | "error"
—
modelstring
Model id as served, e.g. openai/gpt-5.6-sol.
providerstring
Provider kind id, e.g. openai, anthropic, aws-bedrock.
connectionstring
Connection id (conn_…).
routestring
Route id or slug; none for direct model calls.
projectstring
Project id (proj_…).
keystring
Gateway key id (key_…).
environmentstring
—
finish_reason"stop" | "length" | "tool_calls" | "content_filter" | "other"
—
trace_idstring
—
workflowstring
The workflow the request belongs to (X-INFRO-Workflow).
stepstring
The step of the workflow (X-INFRO-Step).
end_userstring
The customer's own end-user id (metadata.user_id).
tagsobject
Tag filters, ANDed: {"team": "search"}.
sort"newest" | "slowest" | "costliest"
—
limitinteger
—
cursorstring
—
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

get_request

Get one request. Everything INFRO recorded about one gateway request EXCEPT its content: each provider attempt in order (provider, connection, upstream status, the provider's own cleaned error message, latency), the route that chose it, guardrail outcomes, tokens, estimated provider cost (USD) with how it was priced, the calls INFRO made for it, and a console link. Prompts and completions are never returned (recorded content, when the organization records it, is read in the console). Use it after search_requests; for a whole multi-step run use get_trace.

Needs analytics:read · read-only, idempotent.

idstringrequired
Request id (req_…).
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

get_trace

Get a trace (one run). Every request that carried one trace id, in order: step, model, status, latency and estimated provider cost (USD) per step, plus the run's totals and cost by step. The total covers model calls made through INFRO only and is a lower bound when any step is unpriced (cost_is_partial). Use get_request for one step's attempts.

Needs analytics:read · read-only, idempotent.

trace_idstringrequired
—
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

list_runs

List runs. Runs: the requests that shared a trace id, one row per workflow and trace, with requests, errors, duration, estimated provider cost (USD, a lower bound when cost_is_partial), models, end user, score summary and prompt versions. Filter by window (at most 31 days), workflow, model, project, errors, minimum cost or a mean score below a value; sort newest, costliest, slowest or by errors. Use get_trace for one run's steps.

Needs analytics:read · read-only, idempotent.

period"last_hour" | "last_24h" | "last_7d" | "last_30d" | "this_month" | "last_month"
A preset window, in UTC. this_month and last_month are calendar months. Ignored when from is given.
fromstring
Window start, ISO 8601 (overrides period).
tostring
Window end, ISO 8601. Default: now.
workflowstring
—
modelstring
—
projectstring
Project id (proj_…).
has_errorsboolean
—
min_cost_usdnumber
—
score_belownumber
Runs whose mean numeric score is below this.
sort"newest" | "costliest" | "slowest" | "errors"
—
limitinteger
—
cursorstring
—

list_findings

List findings. What INFRO noticed without being asked: spend anomalies, forecasts over budget, cost drift, budget threshold crossings, failing connections, unpriced traffic, served-model changes and regressions. Filters by status (default open), type and severity. Acknowledge one with acknowledge_finding (manage set).

Needs findings:read · read-only, idempotent.

status"open" | "acknowledged" | "resolved" | "all"
—
type"spend.anomaly" | "spend.forecast_over_budget" | "cost.drift" | "budget.threshold_crossed" | "connection.failing" | "unpriced.traffic" | "traffic.model_changed" | "traffic.regression" | "mcp.tool_changed" | "mcp.server_failing" | "model.retiring" | "prompt.rolled_back" | "prompt.quality_dropped" | "evaluator.limit_reached"
—
severity"info" | "warning" | "critical"
—
limitinteger
—
cursorstring
—
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

get_budget_status

Spend limits and how much is used. Every enforced spend limit — organization, project, member and gateway key — with its period, limit (USD), estimated provider spend against it, percent used, whether it is hard (blocks requests) or soft (alerts only), and when it resets. Sorted by percent used, highest first. Unpriced requests are counted beside the spend, not inside it. End-customer caps are not included; see list_configuration with end_user_cap_rules. Change a project or member limit with set_spend_limit (manage set).

Needs budgets:read · read-only, idempotent.

search_audit_log

Search the audit log. Who changed what in this organization: members in the console, management tokens (Terraform, the CLI, scripts, AI assistants through MCP) and INFRO itself. Filter by action (an exact action such as api_key.revoked, or a resource prefix such as route), actor (people, tokens or infro), free text q and a time window. Newest first.

Needs audit:read · read-only, idempotent.

actionstring
—
actor"people" | "tokens" | "infro"
—
qstring
Case-insensitive text in the action, actor or target.
fromstring
—
tostring
—
limitinteger
—
cursorstring
—
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

list_security_signals

List security signals. What the Security screen shows: evidence that a gateway key or provider key may be misused, each with its next actions. Leak signals (many countries in a day, many times the usual volume or spend), retired or turned-off keys presented again, refusal bursts, new models, tripwire keys touched, usage on a provider key outside INFRO, new keys at the provider, sign-ins from a new country, access widened, the emergency stop. Answers "is anything wrong with our keys?". Metadata only: counts, countries, models, times and estimated provider cost; never a prompt or an address. Filter by kind, severity, status or one key. Contain a key with contain_gateway_key (manage set).

Needs security:read · read-only, idempotent.

status"open" | "acknowledged" | "resolved" | "observed" | "all"
—
kind"key_countries" | "key_velocity" | "provider_credential" | "usage_outside_infro" | "spend_anomaly" | "secret_in_prompt" | "network_refusals" | "access_widened" | "key_retired_used" | "key_disabled_used" | "refusals" | "key_new_model" | "key_expiring" | "provider_key_new" | "tripwire" | "distillation_shape" | "sign_in" | "organization_paused" | "public_leak"
—
severity"info" | "warning" | "critical"
—
key_idstring
One gateway key (key_…).
daysinteger
—
limitinteger
—
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

list_prompts

List managed prompts. The organization's managed prompts: slug, description, newest version and each label (production, staging, …) with the version it points at. A request names one on /v1/chat/completions and the gateway fills it in. Use get_prompt for a prompt's versions and text. Needs the prompts:read scope.

Needs prompts:read · read-only, idempotent.

get_prompt

Get a managed prompt. One managed prompt: its labels and its versions, newest first, each with the template messages ({{variables}} unfilled), variables, default model and settings, and the note it was saved with. Read only: saving a version or moving a label is done in the console or the management API. Needs the prompts:read scope.

Needs prompts:read · read-only, idempotent.

slugstringrequired
—
versionsinteger
How many of the newest versions to return.

export_requests

Export requests (download link). A download link, valid for an hour, to the request log as CSV: one row per request with time, project, key, provider, connection, route, model requested and served, status and error code, tokens, estimated provider cost (USD) and its source, latency, attempts, trace id, workflow, step, feature, end user, session and tags. Up to 50,000 requests; more is refused, narrow the window or filters. Same filters as search_requests. Prompts and completions are never in the file. Give the person the link (or save it with curl -L -o requests.csv <url>); the download is recorded in the audit log.

Needs analytics:read · read-only, idempotent.

period"last_hour" | "last_24h" | "last_7d" | "last_30d" | "this_month" | "last_month"
A preset window, in UTC. this_month and last_month are calendar months. Ignored when from is given.
fromstring
Window start, ISO 8601 (overrides period).
tostring
Window end, ISO 8601. Default: now.
status"ok" | "error"
—
modelstring
—
providerstring
—
connectionstring
—
routestring
Route id or slug; none for direct model calls.
projectstring
—
keystring
—
environmentstring
—
workflowstring
—
stepstring
—
end_userstring
—
sort"newest" | "slowest" | "costliest"
—

list_evaluators

List evaluators (LLM judges). The organization's evaluators: each is a rubric a chat model judges answers by, on the organization's own providers, writing scores named after it. Shows the judge model, what it returns (a score, pass or fail, or a category), the live sample rate, the monthly spend limit and this month's judged calls, failures and estimated provider cost. Needs the quality:read scope.

Needs quality:read · read-only, idempotent.

list_datasets

List datasets. The organization's datasets: inputs (chat messages) with optional expected outputs, built from logged requests or uploaded, used to run experiments. Shows each dataset's name, item count and version; not the items. Needs the quality:read scope.

Needs quality:read · read-only, idempotent.

list_experiments

List experiments. The organization's experiments, newest first: a dataset replayed across variants (models, routes, prompt versions, settings) and judged by evaluators. Shows each one's status, progress, estimated provider cost, spend cap and what it spent. Use get_experiment for the comparison. Needs the quality:read scope.

Needs quality:read · read-only, idempotent.

get_experiment

Get an experiment's comparison. One experiment and its comparison per variant: mean score per evaluator, pass rate for pass/fail judges, error rate, p50/p95 latency, estimated provider cost per item and in total. Costs are INFRO's estimates of what the organization's providers bill, never an INFRO charge. Needs the quality:read scope.

Needs quality:read · read-only, idempotent.

idstringrequired
The experiment's exp_ id, from list_experiments.

Configure

list_models

List catalog models. The model catalog: each model's id, name, modality, which provider kinds can serve it, whether this organization has a connection of one of those kinds, and the vendor's LIST rate. The list rate is a reference for estimating provider cost — what the vendor publishes — not an INFRO price; INFRO charges nothing per token. Filter by provider kind, modality or a text query.

Needs any read scope · read-only, idempotent.

providerstring
Provider kind id, e.g. anthropic, aws-bedrock, openrouter.
modality"text" | "image" | "video" | "audio" | "embedding"
—
querystring
Case-insensitive text in the model id or name.
limitinteger
—
cursorstring
The previous result's next_cursor.
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

list_configuration

List configuration. List one kind of configuration: projects, gateway keys, provider connections, routes, organization settings, member budgets, negotiated prices, notification rules, cost centers and their rules, commitments, guardrail policies or end-customer cap rules — only the kinds this token can read. Each row has the id, name, the fields that matter, managed_by (terraform, cli or api: a tool owns it and will revert changes) and version (pass it as expected_version to a manage tool). Credentials are never returned.

Needs <family>:read · read-only, idempotent.

resource_type"projects" | "gateway_keys" | "provider_connections" | "routes" | "org_settings" | "member_budgets" | "model_prices" | "notification_rules" | "cost_centers" | "cost_center_rules" | "commitments" | "guardrail_policies" | "end_user_cap_rules" | "mcp_servers" | "mcp_key_grants" | "mcp_server_tools"required
—
projectstring
Only items of this project (proj_…), for types that belong to one.
response_format"concise" | "detailed"
concise (default) returns the fields most questions need; detailed returns every field.

get_configuration

Get one configuration item. One configuration item in full (credentials removed), with its version — needed as expected_version by every manage tool — its managed_by, and a console link. If managed_by is terraform, cli or api, tell the person before changing it: the tool that manages it will revert a change made here.

Needs <family>:read · read-only, idempotent.

resource_type"projects" | "gateway_keys" | "provider_connections" | "routes" | "org_settings" | "member_budgets" | "model_prices" | "notification_rules" | "cost_centers" | "cost_center_rules" | "commitments" | "guardrail_policies" | "end_user_cap_rules" | "mcp_servers" | "mcp_key_grants" | "mcp_server_tools"required
—
idstring
The item's id. Omit for org_settings.

prepare_gateway_key

Prepare a gateway key (console link). NEVER creates a key. Validates the settings for a new gateway key — label, project, environment, allowed provider kinds, rate tier (requests per minute) and expiry — and returns a console_url that opens the console's create dialog prefilled. The person reviews it and clicks Create in the console, which shows the secret once. Give them the link; a key secret never passes through an assistant.

Needs keys:read · read-only, idempotent.

labelstringrequired
—
projectstring
Project id (proj_…). A project-restricted token always uses its own.
environmentstring
Environment slug, e.g. production.
allowed_providersstring[]
Provider kind ids. Empty: every provider.
rate_limit_rpminteger
One of 60, 100, 200, 300, 500, 1000, 2000, 5000, 10000, 20000, 50000.
expires_in_daysinteger
—

get_setup_status

Setup status and next step. Where this organization's INFRO setup stands, and what to do next: whether a provider account is connected, whether a gateway key exists, and whether a request has been served. The place to start when the person asks to set INFRO up, connect a provider or route this project through INFRO. Returns the three steps with their status, the providers that can be connected (connectable_providers), the gateway's base URL, one next_step and a short playbook for doing the whole setup from a coding assistant. Creates nothing. Provider credentials and gateway key secrets never pass through an assistant: prepare_provider_connection and prepare_gateway_key return console links where the person enters or copies them.

Needs any read scope · read-only, idempotent.

prepare_provider_connection

Prepare a provider connection (console link). NEVER connects a provider and NEVER takes a credential. Checks that the provider can be connected to this organization and returns a console_url that opens the INFRO console's setup on that provider's connect form, with the fields the person will be asked for. Give the person the link: they paste their own provider credential there, the console tests it and saves it sealed. A provider credential never passes through an assistant; do not ask for one in the chat and do not read one from the project's files. Call get_setup_status afterwards to see that it is connected.

Needs connections:read · read-only, idempotent.

providerstringrequired
Provider kind id from get_setup_status connectable_providers, e.g. openai, anthropic, aws-bedrock. A provider's name is accepted too.

simulate_route

Simulate a route. Dry-run a route against a sample request without sending anything: which if-rule matches (each condition, true or false), the targets in the order they would be tried, and for each whether it can serve now and why not (connection disabled or ejected, outside the key's environment, model not covered by the key, no model map entry). Pass the sample's metadata (feature, workflow, step, metadata, input_tokens, class, …) and the key's environment. Calls no provider and no classifier, costs nothing. Use it after create_route or update_route, and before pointing an application at a route.

Needs routes:read · read-only, idempotent.

routestringrequired
Route id (rt_…) or slug.
environmentstring | null
The environment of the gateway key that would send it; null for an unscoped key.
requestobject
—

check_provider_connection

Check a provider connection. Whether a provider connection is working, from what INFRO has recorded: its status, health, consecutive failures, any ejection after repeated failures, the last check and its error, when it last served a request, and (with usage access) its requests and failures over the last 24 hours. Reads only: it never contacts the provider and never calls a model. To run a live test of the stored credential, give the person console_url; to replace the credential, prepare_provider_connection links to the console. The credential is never returned.

Needs connections:read · read-only, idempotent.

connection_idstringrequired
Connection id (conn_…), from list_configuration provider_connections.

get_integration_guide

Integration guide for the application. What the person's APPLICATION code should send so INFRO can attribute, route, cache and cap its traffic, with ready code for this environment's gateway: attribution (feature, workflow, step, end user and session on every request), routes (call a route instead of a model), prompt_caching (provider prompt caching, Anthropic cache_control), response_cache, reliability (retries, max_tokens, failover) and budgets. INFRO cannot edit the application; a coding assistant can, with the person's agreement. Show the diff before changing code, and never put a key's value in code: read it from INFRO_API_KEY.

Needs any read scope · read-only, idempotent.

topic"attribution" | "routes" | "prompt_caching" | "response_cache" | "reliability" | "budgets"
One topic; omit for all of them, in short.

Manage

create_project

Create a project. Create a project, optionally with a monthly spend limit (spend_limit: monthly in USD of estimated provider cost, behavior block or alert, alert_at as fractions such as 0.8). Safe to retry: the same arguments return the same project. Confirm the name with the person first. To issue its gateway key, use prepare_gateway_key and give the person the link.

Needs projects:write · changes configuration, idempotent.

namestringrequired
—
slugstring
—
spend_limitobject | null
—

set_spend_limit

Set a project or member spend limit. Set or remove the monthly spend limit of a project or of a member (target). spend_limit is {monthly: USD, behavior: "block" | "alert", alert_at: [0.5, 0.8]} — fractions, not percents — or null to remove it. block refuses requests once the limit is reached; alert only notifies. Amounts are estimated provider cost, never an INFRO charge. Needs expected_version from get_configuration (projects or member_budgets). Confirm the amount with the person first.

Needs projects:write (projects) or budgets:write (members) · changes configuration, destructive, idempotent.

target"project" | "member"required
—
idstringrequired
Project id (proj_…) or member id, as list_configuration returns them.
expected_versionintegerrequired
The version you last read with get_configuration or list_configuration. A stale one is refused with version_conflict.
spend_limitobject | null | nullrequired
—

update_route

Change a route. Change a route's ordered targets, if-rules, failover settings or other fields; fields you leave out are unchanged, targets/rules replace the whole list. This changes PRODUCTION traffic: show the person the change and get their confirmation first. Needs expected_version from get_configuration (routes). Returns a before/after diff, and a warning if Terraform or another tool manages the route.

Needs routes:write · changes configuration, destructive, idempotent.

namestring
—
descriptionstring | null
—
strategy"priority" | "weighted"
—
environmentstring | null
—
environmentsstring[] | null
—
timeout_msinteger | null
—
max_retriesinteger
—
targetsobject[]
—
rulesobject[]
—
failoverobject
—
classifierobject | null
Prompt classifier (0087): {model, instructions, classes: [{key, description}], input, timeout_ms, min_confidence, fallback_class}. A decision model (model; Jev by default) picks one class per prompt on the organization's own connection to its provider; rules test it as class. Null removes it.
route_idstringrequired
Route id (rt_…).
expected_versionintegerrequired
The version you last read with get_configuration or list_configuration. A stale one is refused with version_conflict.

acknowledge_finding

Acknowledge a finding. Mark an open finding as acknowledged (seen and being handled). Safe to repeat: the first acknowledgement stands. It does not resolve the cause or mute future findings.

Needs findings:write · changes configuration, idempotent.

finding_idstringrequired
Finding id (calr_…).

revoke_gateway_key

Revoke a gateway key (irreversible). IRREVERSIBLE: revoke a gateway key now; every request with it fails from then on and it cannot be restored. Confirm with the person first, naming the key by its label. confirm_label must equal the key's current label exactly, and expected_version its version (get_configuration with gateway_keys). To pause a key instead, use set_gateway_key_enabled.

Needs keys:write · changes configuration, destructive, idempotent.

key_idstringrequired
Gateway key id (key_…).
expected_versionintegerrequired
The version you last read with get_configuration or list_configuration. A stale one is refused with version_conflict.
confirm_labelstringrequired
The key's current label, exactly, as the person confirmed it.

set_gateway_key_enabled

Turn a gateway key off or on. Turn a gateway key off (enabled: false) or back on. Off, every request with it is refused with key_disabled until it is turned on again; its secret, limits and history are kept. This changes production traffic: confirm with the person first. Needs expected_version from get_configuration (gateway_keys). Use revoke_gateway_key only to end a key for good.

Needs keys:write · changes configuration, destructive, idempotent.

key_idstringrequired
—
expected_versionintegerrequired
The version you last read with get_configuration or list_configuration. A stale one is refused with version_conflict.
enabledbooleanrequired
false turns the key off; true turns it back on.

contain_gateway_key

Contain a gateway key. Narrow a gateway key that may be misused, from the next request: turn it off (disabled: true), lower its spend limit (credit_limit {amount in USD of estimated provider cost, period hourly|daily|weekly|monthly|never}), keep only some of its networks (allowed_ips), or keep only some countries (country_rule {mode: allow, codes}). Tighten-only: anything that would widen the key is refused with containment_widens and nothing changes. This changes production traffic: confirm the key and the change with the person first. Turning the key back on is Release in the console, or set_gateway_key_enabled.

Needs security:write · changes configuration, destructive, idempotent.

key_idstringrequired
—
disabledboolean
—
credit_limitobject
—
allowed_ipsstring[]
—
country_ruleobject
—
reasonstring
Why, in the person's words; kept in the audit log.

pause_organization

Press the emergency stop. Stop AI traffic with the organization's emergency stop: every gateway request (scope: organization), one environment, one project, or every key except the named ones (keys_except with except_key_ids). Refused requests get organization_paused; the Playground and Studio stop too. Every member of the organization is emailed, with the reason. This stops production traffic: confirm the scope and the reason with the person first. Only owners, admins, Security members and members granted the stop may press it. It cannot be released from here: a person resumes traffic in the console (Security), after confirming it's them. Nor narrowed: while a stop is in force, only scope: organization replaces it (pause_in_force otherwise).

Needs security:write · changes configuration, destructive, idempotent.

scope"organization" | "environment" | "project" | "keys_except"required
—
environmentstring
With scope environment only.
project_idstring
With scope project only.
except_key_idsstring[]
With scope keys_except only: the keys that keep running.
reasonstringrequired
Why, in a few words. Every member's email carries it.

create_route

Create a route. Create a route: a name an application sends as model (its slug) that resolves to an ordered or weighted list of the organization's own provider connections and models (targets: connection_id, model, weight), with optional if-rules on request metadata (rules), failover and a timeout. A weighted route splits traffic (for example weights 70 and 30 send about 70% of requests to the first target); every target is still a failover for the others. A new route takes NO traffic until an application sends its slug, so it is safe to create and test first: the result includes a dry run of which targets can serve. Confirm the targets with the person first. Safe to retry.

Needs routes:write · changes configuration, idempotent.

slugstringrequired
—
namestring
—
descriptionstring | null
—
strategy"priority" | "weighted"
—
environmentstring | null
—
environmentsstring[] | null
—
timeout_msinteger | null
—
max_retriesinteger
—
targetsobject[]required
—
rulesobject[]
—
failoverobject
—
classifierobject | null
Prompt classifier (0087): {model, instructions, classes: [{key, description}], input, timeout_ms, min_confidence, fallback_class}. A decision model (model; Jev by default) picks one class per prompt on the organization's own connection to its provider; rules test it as class. Null removes it.

update_project

Change a project. Change a project's name, model allowlist (model_allowlist: catalog model ids its keys may reach; [] allows every model the organization allows), response cache (response_cache_override: inherit, on or off), monthly spend limit (spend_limit) or archive it (archived). An allowlist refuses requests for other models from the next request: show the person the list and get their yes first. Needs expected_version from get_configuration (projects). Returns a before/after diff.

Needs projects:write · changes configuration, destructive, idempotent.

namestring
—
model_allowliststring[]
—
spend_limitobject | null
—
archivedboolean
—
response_cache_override"inherit" | "on" | "off"
—
project_idstringrequired
Project id (proj_…).
expected_versionintegerrequired
The project's version from get_configuration.

preview_configuration_change

Preview a configuration change. Check a create, update or delete of projects, gateway key limits, provider connections (never their credential or base URL), routes, organization settings, member budgets, negotiated model prices, notification rules, cost centers and their rules, commitments, guardrail policies and end-customer caps, without changing anything. Returns the before/after of each field, what it does to traffic, warnings (a Terraform-managed item, a disabled connection, an allowlist that will refuse requests), and a preview_digest. Show the person the changes and warnings, and get their yes; then call apply_configuration_change with the SAME arguments and the digest. Validated with the management API's own rules; the console's link is in console_url.

Needs the type's family:write (projects:write, routes:write, prices:write, …) · read-only, idempotent.

resource_type"projects" | "gateway_keys" | "routes" | "member_budgets"required
—
operation"create" | "update" | "delete"required
—
idstring
The item's id, for update and delete. Omit for org_settings and for create.
expected_versioninteger
The item's version from get_configuration or list_configuration. Required for update and delete.
changesobject
The fields to set, exactly as the management API takes them (get_configuration shows the current item). On update, fields you leave out are unchanged and a list replaces the whole list. Omit for delete.

apply_configuration_change

Apply a previewed configuration change. Apply a change exactly as preview_configuration_change showed it: the same arguments plus its preview_digest. Different arguments, or an item that changed since the preview, are refused before anything is sent. This changes PRODUCTION configuration: call it only after the person agreed to the preview. A delete also needs confirm_name: the item's name as the person confirmed it. Returns what changed, the new version and a console link. Safe to retry: the same create returns the first result.

Needs the type's family:write (projects:write, routes:write, prices:write, …) · changes configuration, destructive, idempotent.

resource_type"projects" | "gateway_keys" | "routes" | "member_budgets"required
—
operation"create" | "update" | "delete"required
—
idstring
The item's id, for update and delete. Omit for org_settings and for create.
expected_versioninteger
The item's version from get_configuration or list_configuration. Required for update and delete.
changesobject
The fields to set, exactly as the management API takes them (get_configuration shows the current item). On update, fields you leave out are unchanged and a list replaces the whole list. Omit for delete.
preview_digeststringrequired
The preview_digest preview_configuration_change returned for these arguments.
confirm_namestring
Delete only: the item's name, exactly, as the person confirmed it.

start_experiment

Start an experiment. Replay a dataset across up to six variants (each a model or route, optionally a managed prompt version, and settings) and judge every answer with up to five evaluators. Every call goes to the organization's OWN providers, which bill them for it, and counts against the monthly request allowance. Without spend_cap nothing starts: the tool returns the estimate (requests, estimated provider cost per variant and judge, allowance). Show it to the person; only when they agree, call again with spend_cap at or above the estimate. The run stops when its spend reaches the cap. Needs the quality:write scope.

Needs quality:write · changes configuration.

datasetstringrequired
The dataset's name, from list_datasets.
namestring
—
variantsobject[]required
—
evaluatorsstring[]
Evaluator names, from list_evaluators.
environmentstring
—
spend_capnumber
The most the run may spend, in US dollars. Leave out to get the estimate first.

Studio

They run INFRO Studio on your own provider accounts, which bill you for every step; INFRO charges nothing per run. Money is estimated provider cost, never an INFRO charge.

From a coding assistant (Claude Code, Codex): files go in through create_studio_upload, whose link the assistant runs curl -T against, never as text in a tool call; results come back as hour-long links it saves with curl -L -o. A film is planned by the assistant, created with create_studio_film, made with render_studio_film (in passes when it is longer than one run) and delivered by export_studio_film as a package with editor timelines. INFRO does not render the timeline into one video file.

list_studio_recipes

List INFRO Studio recipes and Flows. List the INFRO Studio recipes this organization can run (built-in and saved), each with its parameters (key, label, kind, optional, choices), and the Studio projects that have a Flow. Use it before run_studio_recipe or run_studio_flow to learn the ids and which values a recipe needs. runnable: false recipes run only inside Studio.

Needs studio:read · read-only, idempotent.

run_studio_recipe

Run an INFRO Studio recipe (or a batch of them). Run a Studio recipe once with values, or once per entry of items (a batch, up to 200). Every step calls the organization's OWN providers, which bill them for it. Without confirmed_estimate nothing starts: the tool returns the estimate (estimated provider cost, unpriced steps, requests, providers) and an estimate_id. Show the person the estimate; only when they agree, repeat the same arguments with confirmed_estimate. Safe to retry: the same confirmed arguments return the same run or batch.

Needs studio:write · starts or changes Studio work, idempotent.

recipe_idstringrequired
system:<id> or a saved recipe id (srec_…), from list_studio_recipes.
valuesobject
The recipe's parameters by key (list_studio_recipes): text, a number, an asset id, a model id, or a list of them.
itemsobject[]
A batch: one run per entry, each a full set of values. Do not pass values with it.
labelsstring | null[]
A short label per item, in order (a batch only).
namestring
What the batch is called in Studio (a batch only).
project_idstring
A Studio project to file the results in; the Library when absent.
confirmed_estimatestring
The estimate_id of the estimate the person agreed to. Without it the tool returns the estimate and starts nothing.

run_studio_flow

Run an INFRO Studio Flow. Run a Studio project's saved Flow: all its free steps, or the ones named in targets. A Flow fed by a list runs as a batch. Every step calls the organization's OWN providers, which bill them for it. Without confirmed_estimate nothing starts: the tool returns the estimate and an estimate_id. Show the person; only when they agree, repeat the same arguments with confirmed_estimate. Storyboard shots run from the storyboard in Studio, not here.

Needs studio:write · starts or changes Studio work, idempotent.

project_idstringrequired
The Studio project whose Flow to run (list_studio_recipes lists them under flows).
targetsstring[]
Step or recipe-card ids to run; every free step when absent.
namestring
What a batch is called in Studio.
confirmed_estimatestring
The estimate_id of the estimate the person agreed to. Without it the tool returns the estimate and starts nothing.

get_studio_run

Read an INFRO Studio run. A Studio run's status and its steps: model, provider, status, estimated and settled provider cost (billed by the organization's own providers), result asset ids, a text step's answer, and a pick waiting for a choice. With with_links (default true), each finished result gets a download link valid for an hour.

Needs studio:read · read-only, idempotent.

run_idstringrequired
Run id (srun_…), from run_studio_recipe, run_studio_flow or a batch item.
with_linksboolean
Add an hour-long download link per result (the first 12).

get_studio_batch

Read an INFRO Studio batch. A Studio batch: its status, counts, and each item's run, status, results and error, with estimated and settled provider cost (billed by the organization's own providers). With with_links (default true), finished results get a download link valid for an hour. Without batch_id, lists the recent batches.

Needs studio:read · read-only, idempotent.

batch_idstring
Batch id (sbat_…); leave it out to list recent batches.
with_linksboolean
Add an hour-long download link per result (the first 12).

cancel_studio_work

Cancel an INFRO Studio run or batch. Stop a Studio run (run_id) or a whole batch (batch_id): steps not yet sent are not sent; a step already at the provider finishes there and may still be billed by that provider. Finished results stay in the Library. Confirm with the person first.

Needs studio:write · starts or changes Studio work, destructive, idempotent.

run_idstring
—
batch_idstring
—

pick_studio_result

Choose a result at an INFRO Studio pick. A run waiting at a pick step goes on with the result the person chose: asset_id must be one of the step's pick_candidates (get_studio_run). A choice is made once. Show the person the candidates (their download links) and let them choose; never choose for them. The run's next steps then call the organization's own providers.

Needs studio:write · starts or changes Studio work.

run_idstringrequired
—
node_idstringrequired
The pick step's node_id.
asset_idstringrequired
The chosen result, one of pick_candidates.

get_studio_capabilities

What INFRO Studio can make here. The models this organization can run in INFRO Studio on its OWN connected providers, and what each takes per provider: aspect ratios, resolutions, durations, reference images (how many), first frame / last frame, generated audio, edit. Call it before generate_studio_media or render_studio_film to choose models. Filter by modality (image, video, audio) or task (generate, speech, lipsync, music, sound_effects, image_upscale, video_upscale, background_removal, image_expand, relight), or name one model.

Needs studio:read · read-only, idempotent.

modality"image" | "video" | "audio"
—
taskstring
—
modelstring
One model id, for its full detail.

create_studio_upload

Get a link to upload a file to INFRO Studio. A link valid for 15 minutes to put ONE local file (an image, video or audio: PNG, JPEG, WebP, AVIF, MP4, MOV, WebM, WAV, MP3, M4A, FLAC) into the Studio Library, to use as a reference, a first or last frame, a video to extend or an audio line. Run the returned curl -T <file> <upload_url> in the person's shell; its JSON answer has the asset id to pass to generate_studio_media or create_studio_film. Never paste file contents into a tool call. Call once per file.

Needs studio:write · starts or changes Studio work.

namestring
The file's name in the Library.
project_idstring
A Studio project to file it in; the Library when absent.

import_studio_asset

Import a file into INFRO Studio from a public link. Fetch one public https image, video or audio file (up to 100 MB) into the Studio Library and return its asset id. For a file on the person's disk, use create_studio_upload instead.

Needs studio:write · starts or changes Studio work.

urlstringrequired
A public https:// link to the file.
namestring
—
project_idstring
—

generate_studio_media

Generate an image, video or audio in INFRO Studio. One INFRO Studio step on the organization's OWN providers, which bill them: image (text-to-image; with image_asset_id an edit), video (text-to-video; first_frame_asset_id / last_frame_asset_id for image-to-video), voice (the prompt spoken; settings.voice), sound_effect, music, lipsync (a video or picture to an audio line), upscale, video_upscale, extend, video_to_video, remove_background, expand, relight. references guide a picture or video with Library images (a character, a style, an object or a subject), as many as the model takes (get_studio_capabilities). For several steps wired together, pass graph instead (Studio's run graph). Without confirmed_estimate nothing starts: you get the estimate and an estimate_id. Show it to the person, then repeat the same arguments with confirmed_estimate. Then poll get_studio_run; its download links can be saved with curl -L -o.

Needs studio:write · starts or changes Studio work, idempotent.

type"image" | "video" | "voice" | "sound_effect" | "music" | "lipsync" | "upscale" | "video_upscale" | "extend" | "video_to_video" | "remove_background" | "expand" | "relight"
What to make. Required unless graph is given.
modelstring
A model id from get_studio_capabilities.
promptstring
What to make (for voice: the words to speak). Not needed for upscale, lipsync, remove_background.
negative_promptstring
—
providerstring
Pin one of the organization's providers (a kind id); Auto (routes and failover) when absent.
settingsobject
What the model takes: aspect_ratio, resolution, quality, duration_seconds, generate_audio, voice, instrumental… (get_studio_capabilities).
countinteger
Pictures to make (images only).
seedinteger
—
referencesobject[]
—
image_asset_idstring
The picture to edit, upscale, finish or lip-sync.
mask_asset_idstring
An inpainting mask for an image edit.
first_frame_asset_idstring
—
last_frame_asset_idstring
—
video_asset_idstring
The video to extend, restyle, upscale or lip-sync.
audio_asset_idstring
The audio line to lip-sync to.
graphobject
Advanced: a whole Studio run graph (several steps; { node: id } wires one step's result into another).
project_idstring
A Studio project to file results in; the Library when absent.
confirmed_estimatestring
The estimate_id of the estimate the person agreed to. Without it the tool returns the estimate and starts nothing.

create_studio_film

Create an INFRO Studio film from a plan. Turn a film plan YOU write (title, cast, scenes, shots with action, camera, length and dialogue; at most 40 shots) into a Studio project: its cast and its storyboard. Calls no model and costs nothing. Give cast members their look with cast_media.<key>.reference_asset_ids (Library images: upload them first) and a voice with cast_media.<key>.voice ({model, voice}), so every shot keeps the same faces, places and voices. Then call render_studio_film to make it, and export_studio_film for the package.

Needs studio:write · starts or changes Studio work.

planobjectrequired
—
namestring
The project's name; the plan's title when absent.
cast_mediaobject
—
modelsobject
The project's default keyframe and animation models.

get_studio_film

Read an INFRO Studio film. A Studio film (project): its cast, and every scene and shot with what is made (keyframe, animation, voice, lip-sync) and what it still needs. With with_links, hour-long download links for the first 12 results.

Needs studio:read · read-only, idempotent.

project_idstringrequired
—
with_linksboolean
—

render_studio_film

Make an INFRO Studio film (the whole pipeline). Make every waiting shot of a Studio film in ONE run on the organization's OWN providers: a keyframe per shot from its cast's references, each shot animated from its keyframe and ending on the NEXT shot's keyframe (continuous scenes, where the video model takes a last frame), each dialogue line voiced in the speaker's cast voice, lip-synced onto the shot, optional effect beds per shot and one music score. Models default to the project's and then to the first the organization can run; choose with models (get_studio_capabilities). A long film is made in passes: when remaining_shot_ids is not empty, call again after the run finishes. Without confirmed_estimate nothing starts: you get the estimate and an estimate_id. Show the person, then repeat the same arguments with confirmed_estimate. Poll get_studio_run, then export_studio_film.

Needs studio:write · starts or changes Studio work, idempotent.

project_idstringrequired
—
modelsobject
—
continuity"film" | "scene" | "off"
film: every cut ends on the next shot's first frame; scene: only within a scene; off: none.
native_audioboolean
Ask the video model for its own sound where it can make it.
default_voicestring
A voice for lines whose speaker has no cast voice.
music_promptstring
A score for the film (style, mood, tempo); none when absent.
sound_effectsboolean
An effects and ambience bed per shot.
lipsyncboolean
—
shot_idsstring[]
Only these shots.
confirmed_estimatestring
The estimate_id of the estimate the person agreed to. Without it the tool returns the estimate and starts nothing.

export_studio_film

Export an INFRO Studio film package. Build a Studio film's package: every chosen clip, voice line, effect and score in sequence order, captions, and timelines for Final Cut / DaVinci Resolve (FCPXML), Premiere (XML) and any editor (EDL), with a manifest of models, providers and estimated provider cost per file. Returns a download link valid for an hour: save it with curl -L -o <name>.zip <download_url>. INFRO does not render the timeline into one video file; open the timeline in an editor, or use Play sequence in Studio.

Needs studio:write · starts or changes Studio work.

project_idstringrequired
—

get_studio_brand_kits

Read INFRO Studio brand kits. The organization's INFRO Studio brand kits: name, overview, voice, visual style, palette, typography, logos and reference images (Library asset ids), the default kit, and the kit's strength and gaps. Name brand_kit_id for one kit; project_id adds that project's own kits to the organization's.

Needs studio:read · read-only, idempotent.

brand_kit_idstring
One kit (sbk_…).
project_idstring
—

create_studio_brand_kit

Create an INFRO Studio brand kit. Create an INFRO Studio brand kit in one call, covering Studio's Brand screen: Identity (name, tagline, industry, website, overview, audience), Voice (voice, Always rules, Never rules), Look (palette as hex colours with roles, visual style, reference images), Logos (with variants) and Typography (heading and body families). Logos and reference images are Library pictures: put each file in first with create_studio_upload (or import_studio_asset) and pass the asset ids. Font files and documents come after, with create_studio_brand_upload. The organization's first kit becomes its default. Calls no model and costs nothing. Show the person what the kit will hold before calling it.

Needs studio:write · starts or changes Studio work.

namestringrequired
—
overviewstring
Identity: "What the company is and does", a few sentences.
industrystring
Identity: Industry.
websitestring
Identity: Website, https://…
taglinestring
Identity: Tagline.
audiencestring
Identity: "Who it speaks to".
voicestring
Voice: "Voice and tone", how the brand writes and speaks.
guidelinesstring
Voice: "Always" rules, one rule per line.
avoidstring
Voice: "Never" rules, one rule per line; on pictures and video they become the step's negative prompt.
visual_stylestring
Look: "Visual style", how its pictures look: light, composition, materials, mood.
paletteobject[]
The whole palette: replaces the kit's current one.
typographyobject
Heading and body typefaces by family; null clears one. Font files are uploaded in Studio.
logosobject[]
—
imagesobject[]
Reference pictures of the brand's look.
project_idstring
A project's own kit; the organization's when absent.

update_studio_brand_kit

Change an INFRO Studio brand kit. Change an INFRO Studio brand kit: any field of Studio's Brand screen, the palette (REPLACES the whole palette), typography (a face's file_id points at a font added with create_studio_brand_upload), whether it is the default, add logos or reference images from the Library, and change files already in it (update_files: a logo's variant, a font's weight, the order). Read it first with get_studio_brand_kits, show the person what will change, and only then call this. Removing a file or archiving a kit is done in Studio.

Needs studio:write · starts or changes Studio work, destructive.

brand_kit_idstringrequired
—
namestring
—
overviewstring
Identity: "What the company is and does", a few sentences.
industrystring
Identity: Industry.
websitestring
Identity: Website, https://…
taglinestring
Identity: Tagline.
audiencestring
Identity: "Who it speaks to".
voicestring
Voice: "Voice and tone", how the brand writes and speaks.
guidelinesstring
Voice: "Always" rules, one rule per line.
avoidstring
Voice: "Never" rules, one rule per line; on pictures and video they become the step's negative prompt.
visual_stylestring
Look: "Visual style", how its pictures look: light, composition, materials, mood.
paletteobject[]
The whole palette: replaces the kit's current one.
typographyobject
Heading and body typefaces by family; null clears one. Font files are uploaded in Studio.
is_defaultboolean
Make it the default kit of its scope.
add_logosobject[]
—
add_imagesobject[]
—
update_filesobject[]
Change files already in the kit: a logo's variant, an image's label, a font's family or weight, the order.

create_studio_brand_upload

Get a link to add a font or document to a brand kit. A link valid for 15 minutes to put ONE local font file (TTF, OTF, WOFF, WOFF2) or brand document (PDF, plain text, Markdown) into an INFRO Studio brand kit: Typography's font files and the Documents tab. Run the returned curl -T <file> <upload_url> in the person's shell; never paste file contents into a tool call. A font's answer has its id: set it as a face with update_studio_brand_kit (typography.heading or typography.body = { family, file_id }). Call once per file.

Needs studio:write · starts or changes Studio work.

brand_kit_idstringrequired
—
role"font" | "document"required
—
namestring
The file's name ("Switzer-Semibold.woff2").
familystring
A font's family name; read from the file name when absent.
↑ ↓ navigate↵ open/ anywhere in docs