Set an app's allowed models
gate_set_modelsFor a project in front of a model API: limit which models one app may ask for (the request body's "model", including each batch request, a model form or query field, or a /models/ path; a body Gate cannot read strictly counts as another model). Other models are refused with 403 model_not_allowed before the provider sees them. models: null removes the limit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"admin_key": "<admin_key>",
"app": "<app>",
"models": "<models>"
},
"name": "gate_set_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app id (app_...) | |
| models | Yes | Exact names or prefixes ending in *; null for no limit | |
| admin_key | Yes | The project admin key (ga_...). Read it from the .env; never print it. | |
| project_id | Yes | The project id from gate_create_project, e.g. p1a2b3... |