Skip to main content
Glama

Dismiss Anomaly

dismiss_anomaly
Idempotent

Dismiss (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

NameRequiredDescriptionDefault
periodYesThe period the anomaly falls in (e.g. "2026-06").
reasonNoOptional reason for dismissing the anomaly. The backend accepts exactly "expected", "resolved", or "too-small"; any other value is silently recorded as "expected".
windowYesThe 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.
confirmNoSet 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.
serviceYesThe service whose anomaly to dismiss (e.g. "AmazonEC2").
integration_idNoScope 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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare non-read-only, idempotent, non-destructive, but the description adds substantial context beyond them: upsert/no-op re-dismissal semantics, the four independent write prerequisites (scope, org switch, role, confirm:true), that read-only cak_ keys can never perform it, and that the error names the missing gate. It does not state what a successful response returns, which is the remaining behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and endpoint, then scope rules, then write preconditions, then an example — a deliberate and readable order. Some content restates the schema (confirm:true requirement, the reason enum values are avoided rather than repeated), so it is slightly longer than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description covers the key omission by describing idempotent no-op behavior and refusal messages, but it never says what a successful dismissal returns. Given six parameters and a four-gate authorization model, the coverage is otherwise thorough.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 is the floor; the description earns above that by framing (service, period, window, integration_id-or-absent) as a composite dismissal key that must be reproduced for undismiss_anomaly, and by supplying a full example payload showing how the optional fields combine. Most individual parameter meaning already lives in the schema, so it is not a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb plus resource ('Dismiss (suppress) a cost anomaly'), names the exact endpoint and body, and explicitly contrasts with undismiss_anomaly as the reversal path. An agent can distinguish this from sibling dismissal/report tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete selection criteria for the key scoping decision: pass integration_id for a single-integration suppression, omit it for org-wide suppression, since detection runs per integration. It also tells the agent what to do on refusal (relay the named missing gate rather than retry), which is explicit when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources