Skip to main content
Glama

Delete a schedule

delete_schedule
DestructiveIdempotent

Ends a schedule for good. Its past runs and their records stay readable. A run it already started keeps running and is charged to its end (max_items, timeout_seconds or money): deleting does not abort it (abort_run stops a run sooner). A retried schedule_run under the deleted schedule's idempotency_key does not bring it back (409 schedule_deleted). If a slot was being started at that moment (the ticker had passed its last check), that one run still starts and is charged: the answer then carries inflight_run_id (the run, or null if it has not appeared yet: list_runs shows it), and the run is kept as the schedule's last_run_id.

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": {
      "schedule_id": "<schedule_id>"
    },
    "name": "delete_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
schedule_idYes

Output Schema

NameRequiredDescriptionDefault
deletedYes
schedule_idYes
inflight_run_idNo

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 declare the destructive/idempotent profile, and the description goes well beyond them: past runs and their records remain readable, a started run continues and is billed, retries under the old idempotency_key return 409 schedule_deleted, and there is a documented ticker race whose outcome surfaces as inflight_run_id. That is exactly the context an agent needs before an irreversible action.

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 permanence consequence is front-loaded and every sentence carries distinct information. The final sentence is a run-on with deeply nested parentheses, which costs readability, but no sentence is filler.

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?

For a destructive single-parameter delete with an output schema, the description covers the consequential edge cases: billing continuation, the idempotency tombstone, and the in-flight race with its response field. Nothing an agent must know to call this safely is absent.

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 0%, so the description carries the burden for schedule_id, yet it never says what a schedule id is or mentions the 32-hex format constraint. The single parameter is inferable from the name and the pattern, so this is a real but modest gap rather than a blocking one.

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 ('Ends a schedule for good') and immediately distinguishes the outcome from pause/resume by emphasizing permanence. It also names the sibling that handles the adjacent concern ('abort_run stops a run sooner'), so an agent can tell the two apart without opening a schema.

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?

Guidance is strong on what this tool does NOT do: it doesn't abort an in-flight run (route to abort_run), and it can't be undone by retrying with the same idempotency_key. What's missing is an explicit statement of when to prefer pause_schedule over deletion; that choice is left to inference from 'for good'.

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