Skip to main content

Model Routes

MCP tools for the Model Routes module. See the Model Routes module docs for permissions and data model.

list-model-routes​

List model routes

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
limitnumbernoResults per page. Above the maximum it is clamped, and limit in the response reports the page served; below 1 or not an integer it is 400 VALIDATION_FAILED.
offsetnumbernoResults to skip. Negative or not an integer it is 400 VALIDATION_FAILED.

create-model-route​

Create a model route

Arguments​

ArgumentTypeRequiredDescription
project_idstringnoProject ID (required if not using project key auth)
namestringyesHuman-readable name, unique per project
targetsarray<object>yesOrdered failover targets. Position is priority: target 0 is tried first, and a retryable failure falls through to the next target.
retry_onarray<string>noWhich failure classes are failover-eligible. A failure whose class is not listed (and every deterministic failure — 400-class, auth, content policy) fails the generation immediately instead of spending another target's budget.
failure_thresholdnumbernoConsecutive retryable failures after which a target is skipped for cooldown_seconds. Breaker state is in-process per node and keyed by (provider, model), so it is shared by every route pointing at the same backend.
cooldown_secondsnumbernoHow long a tripped target is skipped before being probed again

get-model-route​

Get a model route

Arguments​

ArgumentTypeRequiredDescription
route_idstringyesModel route ID

update-model-route​

Update a model route

Arguments​

ArgumentTypeRequiredDescription
route_idstringyesModel route ID
namestringnoNew name (unique per project)
targetsarray<object>noReplacement target list (ordered)
retry_onarray<string>no—
failure_thresholdnumberno—
cooldown_secondsnumberno—

delete-model-route​

Delete a model route

Arguments​

ArgumentTypeRequiredDescription
route_idstringyesModel route ID