Skip to main content
Glama

delete_routine

Deletes a scheduled routine and its session history by ID. Confirms with the user first, so you can remove routines like weekly-report without leaving stale run records behind.

Instructions

Delete a routine and its session history. Ask the user first.

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_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the key trait that this is a cascading destructive action that removes session history, and it imposes a user-confirmation requirement, which is exactly the kind of context an annotation would otherwise supply. It omits irreversibility and permission requirements, but the critical danger signal is present.

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?

Two short sentences with the destructive scope first and the confirmation rule second. Nothing is wasted and nothing important is buried.

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 one-parameter deletion tool with no output schema, the description covers what is destroyed and that user consent is required before the call. Behavior after the call and what happens to related sessions are left implicit, so the definition is strong but not exhaustive.

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?

There is a single required parameter with 100% schema description coverage, including a format example ("weekly-report"). The description adds no meaning beyond that schema, so the baseline of 3 applies.

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 names a specific verb and resource ("Delete a routine") and states the scope of what is removed ("its session history"). This scope detail goes beyond the bare name and clarifies that the deletion affects related records. It does not explicitly distinguish this from the sibling tool delete_session, but the resource it names is unambiguous.

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

Usage Guidelines3/5

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

"Ask the user first" is a concrete prerequisite for calling the tool, so it is more than nothing. However, the description says nothing about when to choose this tool instead of alternatives such as delete_session or set_routine_enabled=false, or about what happens to the backing routine's sessions.

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