Dismiss Anomaly
dismiss_anomalyDismiss (suppress) a cost anomaly so it no longer surfaces in the anomaly feed (PUT /api/reports/cost-dashboard/anomaly-dismissals, body { service, period, window, integrationId?, reason? }). Upsert — re-dismissing the same anomaly is a no-op. SCOPE: pass integration_id to suppress the anomaly for ONE integration only (detection runs per integration); OMIT integration_id for an ORG-WIDE dismissal that suppresses the same-keyed anomaly across ALL integrations. The (service, period, window, integration_id-or-absent) tuple is the dismissal KEY; keep it so you can reverse the dismissal with undismiss_anomaly. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "service": "AmazonEC2", "period": "2026-06", "window": "mtd", "integration_id": "8f0b7c8e-...", "reason": "expected", "confirm": true }.
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": {
"service": "<service>",
"period": "<period>",
"window": "<window>"
},
"name": "dismiss_anomaly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | The period the anomaly falls in (e.g. "2026-06"). | |
| reason | No | Optional reason for dismissing the anomaly. The backend accepts exactly "expected", "resolved", or "too-small"; any other value is silently recorded as "expected". | |
| window | Yes | The detection window the anomaly belongs to — one of "mtd", "weekly", or "monthly". REQUIRED — it is part of the dismissal key, so undismiss_anomaly needs the exact same value to reverse it. | |
| confirm | No | Set to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side. | |
| service | Yes | The service whose anomaly to dismiss (e.g. "AmazonEC2"). | |
| integration_id | No | Scope the dismissal to ONE integration (integration id UUID; forwarded as `integrationId` in the body). Anomaly detection runs per integration, so two integrations can flag the same service — a scoped dismissal suppresses only that integration's anomaly. OMIT for an ORG-WIDE dismissal that suppresses the same-keyed anomaly across ALL integrations. The scope is part of the dismissal key: undismiss_anomaly must use the same integration_id (or the same absence). |