Skip to main content
Glama

Delete a lesson (cannot be undone)

delete_lesson
DestructiveIdempotent

Delete a lesson (use when the user wants it gone or made by mistake)

Use when the user asks to remove a lesson or to abandon one created by mistake. Cancels work in flight, removes its queue jobs and deletes its files and rows. Idempotent: a missing lesson answers 404.

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

Input Schema

NameRequiredDescriptionDefault
idYesid

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description goes further by specifying exactly what is destroyed: in-flight work is cancelled, queue jobs are removed, and files and rows are deleted. The 404-on-missing statement adds concrete error behavior, though it partly restates idempotentHint=true.

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?

Three short sentences, front-loaded with purpose then consequences then error behavior. The parenthetical and the following sentence repeat the same 'made by mistake' idea, which is minor redundancy.

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 single-parameter destructive tool with no output schema, the definition covers trigger, irreversibility, blast radius (jobs, files, rows) and missing-resource behavior, so an agent has everything needed to call it correctly and warn the user.

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% but the sole parameter's description is just 'id', so the schema itself carries almost no meaning. The description implies the id identifies the lesson being deleted but adds no format, source, or scoping detail (e.g. where to obtain the lesson id).

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?

The description leads with a specific verb+resource ('Delete a lesson') and immediately scopes intent ('when the user wants it gone or made by mistake'), which cleanly separates it from the sibling mutators like edit_lesson, create_lesson and approve_lesson.

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 clear triggering conditions ('when the user asks to remove a lesson or to abandon one created by mistake'), so an agent knows when to invoke it. It stops short of naming an explicit alternative for related-but-different intents, e.g. pointing to edit_lesson when the user only wants to modify content.

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