Skip to main content
Glama

Delete Notification Channel

delete_notification_channel
DestructiveIdempotent

Delete a notification channel by its id (DELETE /api/reports/cost-dashboard/notification-channels/{id}). DESTRUCTIVE for the channel only: it is detached from every alert rule, budget and report schedule that sent to it, and any alert rule left with no other destination is PAUSED (not deleted) until another channel is attached; budgets become informational-only and report schedules simply stop mirroring to it. The response reports paused_alert_rules, detached_alert_rules, detached_budgets and detached_report_schedules — tell the user what went quiet. 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: { "channel_id": "chan-123", "confirm": true } removes that channel and pauses any rule that had nowhere else to deliver.

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": {
      "channel_id": "<channel_id>"
    },
    "name": "delete_notification_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
channel_idYesThe id of the channel to delete (substituted into DELETE /api/reports/cost-dashboard/notification-channels/{id}).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes well beyond them: it names exactly what is destroyed and what is merely detached, that alert rules with no remaining destination are PAUSED rather than deleted, that budgets become informational-only, and that report schedules stop mirroring. It also discloses the four-part authorization gate, the refusal-with-named-cause behavior, and the response counters to relay to the user — none of which annotations convey.

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 blast radius, then the write-gate, then an example — a sensible order. The all-caps WRITE TOOL block and repeated restatement of the confirm requirement make it longer than strictly necessary, though every part remains relevant.

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

Completeness5/5

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

With no output schema, the description compensates by enumerating the response fields (paused_alert_rules, detached_alert_rules, detached_budgets, detached_report_schedules) and telling the agent to surface them. For a destructive two-parameter tool this covers everything needed to call it correctly and report the outcome.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented, including confirm's refusal semantics. The description reinforces confirm:true through the worked example and clarifies that authorization is role-checked server-side, but adds little syntactic meaning beyond the schema; baseline 3 applies.

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?

States a specific verb and resource (delete a notification channel by id) and pins it to the exact endpoint DELETE /api/reports/cost-dashboard/notification-channels/{id}, which cleanly separates it from create_notification_channel, update_notification_channel and test_notification_channel.

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

Usage Guidelines4/5

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

Gives clear context for use and a strong set of preconditions (admin:write scope, org switch, admin/super_admin role, confirm:true), plus instructions not to retry on refusal. It does not explicitly contrast with sibling operations such as update_notification_channel for renaming or the other delete_* tools, so the alternative routing is left implicit.

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