Apply learned app routes and rate limit
gate_update_appApply stored learning suggestions to an existing app and return the applied routes, suggested per-minute limit and learning-session metadata. Review gate_learn_suggestions first, then explicitly confirm; requires the project owner key or an admin member key. mode="extend" adds learned routes (default); "replace" removes existing routes before applying them. Both modes set the learned rate limit and keep the app key. Only learned suggestions can be applied: arbitrary routes or rate limits are not accepted, and this tool never starts learning.
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>",
"confirm": "<confirm>"
},
"name": "gate_update_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app id (app_...) with stored learning suggestions | |
| mode | No | Extend existing routes (default), or replace them with learned routes; both set the suggested rate limit | |
| confirm | Yes | Explicit confirmation to apply the reviewed learning suggestions | |
| admin_key | Yes | The project owner key (ga_...) or an accepted admin member key (gm_...). Read it from the .env; never print it. | |
| project_id | Yes | The project id from gate_create_project, e.g. p1a2b3... |