Skip to main content
Glama

Delete session

delete_session
Destructive

Delete a class session (cascades its bookings).

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": {
      "class_session_id": "<class_session_id>"
    },
    "name": "delete_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
class_session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is covered. The description's one piece of added value is real and non-duplicative: deleting a session cascades its bookings. It still does not say whether the operation is reversible, whether confirmation is required, or what happens to attendance/financial records.

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?

One sentence, front-loaded with the action and finished with the cascade consequence in parentheses. Every word earns its place; nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema and an undocumented parameter, the definition should say more about irreversibility, whether bookings are deleted or merely cancelled, and any preconditions. The cascade warning is the most important disclosure and it is present, which keeps this at minimum-viable rather than inadequate.

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 0%, so the description carries the burden for the single parameter, and it only weakly does so: 'class session' maps to class_session_id, but no ID format or sourcing (e.g. from list/search results) is given. The parameter name is self-explanatory, so the practical gap is modest.

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?

States a specific verb and resource ('Delete a class session') and adds the key side effect that bookings cascade. It is clearly distinguishable from create_session, update_session, and log_session, though it never explicitly names the sibling delete tools (delete_booking in particular) it might be confused with.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus update_session (to cancel/reschedule) or delete_booking (to remove a single reservation). The cascade note hints that this is the heavy-handed option, but the agent must infer that rather than being told.

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