sync_application_with_prune
Synchronize an ArgoCD application and delete cluster resources missing from Git. Preview deletions with dry-run, or confirm by typing the application name to execute.
Instructions
Synchronize application and PRUNE cluster resources missing from Git (DESTRUCTIVE).
This always passes prune=true to the ArgoCD API. Resources present in the
cluster but absent from the desired Git state will be DELETED on a live run.
- dry_run=true (default): preview which resources would be pruned; no confirmation needed.
- dry_run=false: requires confirm=true AND confirm_name matching the application name.
Requires MCP_READ_ONLY=false and MCP_DISABLE_DESTRUCTIVE=false.
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": {
"params": "<params>"
},
"name": "sync_application_with_prune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |