Skip to main content
Glama

Cancel schedule

cancel_schedule
Destructive

Stop one of the agent's scheduled tasks by id (settings kept, resumable). With remove=true it is also taken off the agent's list. Its conversation is never deleted.

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

Input Schema

NameRequiredDescriptionDefault
removeNoAlso remove it from the agent's list.
agent_idYesTarget agent's id (from list_agents / create_agent / get_catalog view=agents).
schedule_idYesId of the schedule to cancel (from list_schedules).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / remove
      Added value: +{
      +  "description": "Also remove it from the agent's list.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Target agent's id (from list_agents / create_agent / get_catalog view=agents)."
    • addedInput schema / properties / schedule_id / description
      Added value: +"Id of the schedule to cancel (from list_schedules)."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true, readOnlyHint=false; the description goes well beyond them by specifying exactly what survives (settings and conversation) versus what changes (the task stops running, and with remove=true the list entry is dropped). That is precisely the state-change disclosure an agent needs before invoking a destructive tool.

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?

Three short sentences, front-loaded with the core action and followed by the two property/state clarifications. No filler, no restatement of the title.

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?

With three simple parameters, no output schema, and annotations carrying the safety profile, the description covers what an agent needs to call it correctly. Minor gaps remain around whether re-cancelling an already-stopped schedule errors, but nothing essential is missing.

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% and the schema already documents all three parameters, including remove with the same wording used in the description. The description adds no format, id-source, or edge-case detail beyond the 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.

Purpose5/5

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

States a specific verb ("Stop") and resource ("scheduled tasks by id") and immediately bounds the effect: settings are kept and the task stays resumable. The clauses about remove=true and the conversation never being deleted make clear this is not a hard delete, so an agent can distinguish it from destructive removal operations without opening the 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?

Gives clear conditional guidance for the two modes: default cancel versus remove=true to also drop it from the agent's list. It does not name the counterpart tool (e.g. set_schedule) for resuming or re-registering, and no explicit "use this when / don't use when" statement about already-cancelled or non-existent schedules, so it stops short of full routing guidance.

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