Skip to main content
Glama

Delete a rule

delete_automation
Destructive

Delete a rule. A rule that never ran is removed; one with runs is archived so its runs stay on the tickets. The built-in investigation rule can't be deleted; turn it off. It acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.

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": {
      "id": "<id>"
    },
    "name": "delete_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id.
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true), it discloses the non-obvious outcome split — never-ran rules are removed, rules with runs are archived so their run history stays on tickets — plus the built-in rule protection. It also documents the confirmation protocol, including the confirmation_required response, which is behavioral detail structured fields do not carry.

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

Conciseness5/5

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

Four short sentences, front-loaded with the verb and resource, then the outcome semantics, the exclusion, and the confirmation contract. Nothing is redundant and each sentence carries distinct information.

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?

For a two-parameter mutation tool with no output schema, it covers the important ground: what gets destroyed vs. archived, the protected rule, and the confirm handshake. It stops short of noting that archived rules remain recoverable (restore_automation_version exists as a sibling), which would complete the picture.

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 only 50%; `id` is described in the schema but `confirm` is not. The description compensates by explaining exactly what `confirm` does (omitted → returns confirmation_required plus a summary; true → executes), which is the critical missing semantic.

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

Purpose4/5

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

The first sentence pairs a specific verb ('Delete') with the resource ('a rule'), and the body clarifies the two possible outcomes (hard removal vs. archival). It does not name the disable path's tool (set_automation_state) explicitly, so routing to that sibling is only implied by 'turn it off'.

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?

It gives a clear exclusion: the built-in investigation rule cannot be deleted and should be turned off instead. It also explains the required human-agreement flow (call without confirm first). What's missing is an explicit pointer to the sibling that disables a rule or the one that restores an archived version.

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