Model Router

Core Platform

Learn more in the guide: Model Router

model_router_settings_writeModel Router

Pause or resume a facility's Model Router inference, or update its daily, monthly, and total spend limits.

Actions:

  • set_pause: Pause or resume inference. Immediately pause or resume Model Router inference for the facility. Needs paused. Asks for confirmation.
  • set_spend_limits: Update spend limits. Set or clear daily, monthly, or total spend limits (in USD cents). Pass null to clear a limit. Asks for confirmation.

Parameters

NameTypeDescription
action*"set_pause" | "set_spend_limits"What to do; each action is described in the tool description.
facilityIdstringFacility ID. Optional when the connected facility is the one you mean.
pausedbooleanTrue to pause inference, false to resume. (set_pause)
spendLimitDailyCentsintegernullDaily spend cap in USD cents, or null to clear. (set_spend_limits)
spendLimitMonthlyCentsintegernullMonthly spend cap in USD cents, or null to clear. (set_spend_limits)
spendLimitTotalCentsintegernullLifetime spend cap in USD cents, or null to clear. (set_spend_limits)
confirmbooleanSet only after the user confirmed the preview returned by the first call
model_router_status_readModel Router

Inspect a facility's Model Router status, available prepaid credit balance, configured spend limits, auto-recharge settings, and active API key count.

Actions:

  • overview: Get Model Router overview. Return enabled/paused state, available credit balance, spend limits, and auto-recharge settings.

Parameters

NameTypeDescription
action*"overview"What to do; each action is described in the tool description.
facilityIdstringFacility ID. Optional when the connected facility is the one you mean.
model_router_usage_readModel Router

Read Model Router request counts and spend totals for today, the current month, and a configurable recent date range, broken down by model.

Actions:

  • summary: Get usage summary. Return today, month-to-date, and range spend totals plus top models by spend.

Parameters

NameTypeDescription
action*"summary"What to do; each action is described in the tool description.
facilityIdstringFacility ID. Optional when the connected facility is the one you mean.
daysintegerNumber of days to summarise (default 30, max 90) when startDate is omitted.
startDatestringOptional inclusive start date (YYYY-MM-DD).
endDatestringOptional inclusive end date (YYYY-MM-DD).