Skip to main content
Glama

Cancel a failover rule or scheduled prompt

sanecode_cancel_automation
DestructiveIdempotent

Cancel one failover rule or scheduled prompt by its id (from sanecode_list_automations).

Use it when: the user says "stop the failover", "cancel that", "don't continue tonight", "I'm back, turn it off".

Returns what was cancelled.

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": "sanecode_cancel_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe id shown by sanecode_list_automations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered externally. The description adds only 'Returns what was cancelled' and the id provenance; it does not say whether cancellation is permanent or reversible, or what happens to an in-flight/scheduled continuation. With annotations carrying the main burden, a 3 is appropriate.

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?

The core action is front-loaded in the first sentence, followed by a compact when-to-use block and a one-line return note. Every sentence earns its place, though the quoted trigger-phrase list is slightly verbose.

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 single-parameter cancellation tool with full schema coverage, full annotation coverage, and no output schema, the description supplies what an agent needs to select and call it. The only gap is post-cancellation state (recoverable or not), which is a minor omission given the annotations.

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 coverage is 100% for the single required 'id' parameter, and the schema itself states it is 'The id shown by sanecode_list_automations' — the description repeats that same fact without adding syntax, format, or validation detail. Baseline 3 applies when the schema does the heavy lifting.

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 description gives a specific verb ('cancel') and named resources ('one failover rule or scheduled prompt') and points to sanecode_list_automations as the id source, so an agent can identify the operation without opening the schema. It stops short of distinguishing this from set_failover/schedule_continue, which handle related but non-cancel operations.

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 provides explicit trigger phrases ('stop the failover', 'cancel that', 'I'm back, turn it off'), which is clear context for selection. It does not name a when-not condition or an alternative (e.g., use sanecode_set_failover to modify rather than cancel), leaving that to inference.

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