Apply an odile.yaml
gate_sync_declarativeMake a Gate project match an odile.yaml: creates the project (if no project_id) and missing apps and approvers, applies run mode, loop, learning and anomaly-guard settings and alerts. Example plugin: {name: anomaly-guard, settings: {mode: alert, z_threshold: 4, min_minutes: 3, half_life: 60}}. Never revokes or deletes; differences it cannot apply (an app's routes or rate limit) come back as drift. dry_run lists the steps without changing anything. New keys are shown once.
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": {
"config": "<config>"
},
"name": "gate_sync_declarative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | The whole odile.yaml (or the same as JSON) as text | |
| dry_run | No | List the steps without changing anything | |
| admin_key | No | Its admin key (ga_...), required with project_id. Read it from the .env; never print it. | |
| project_id | No | Optional: an existing project to sync |