Skip to main content
Glama

destroy_session

DestructiveIdempotent

Performs a destructive mutation to transition a workshop session state to 'archived'.

  • Cascade Behavior: Atomically tearing down all related active enrollment fixtures.

  • Idempotency: Non-idempotent lookup; subsequent DELETE operations on the same GUID scope will resolve to a 404 response.

⚠️ DESTRUCTIVE OPERATION

LLM/MCP clients MUST obtain explicit end-user confirmation before invoking: present the target resource with user-recognizable identifiers and receive an affirmative response. Confirmation MUST NOT be inferred from dialogue or context.

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": {
      "uuid": "<uuid>",
      "workshop_definition_guid": "<workshop_definition_guid>",
      "guid": "<guid>"
    },
    "name": "destroy_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
guidYesSession (Workshop) GUID.
uuidYesEvent public UUID. Used in all event-scoped API paths.
workshop_definition_guidYesWorkshopDefinition GUID.

Output Schema

NameRequiredDescriptionDefault
dataNoAlways null on successful archive.
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior2/5

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

The description adds genuinely valuable behavior not in the annotations: atomic cascade of related active enrollment fixtures and the 404 on subsequent deletes. But it labels itself "Non-idempotent lookup" while annotations declare idempotentHint=true, giving the agent conflicting retry guidance. It also does not say whether an archived session is recoverable, which is the key unknown for a destructiveHint operation.

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?

Front-loaded with the effect and target state, then bulleted cascade and idempotency notes, then the confirmation gate. The confirmation block is somewhat repetitive ("MUST NOT be inferred") but is proportionate for a destructive tool.

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?

An output schema exists, so return values need no explanation, and all three required parameters are schema-documented. Combined with the cascade and confirmation guidance the definition is nearly complete; the remaining gap is reversibility (can an archived session be restored?) and the idempotency conflict.

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%, so guid, uuid and workshop_definition_guid are already documented in the schema. The description adds no meaning beyond it, such as how the event UUID scopes the lookup relative to the workshop definition GUID. Baseline 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 and resource plus the exact resulting state: "destructive mutation to transition a workshop session state to 'archived'." The target state and the atomic teardown of enrollment fixtures make the effect 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?

It gives a strong invocation precondition (mandatory explicit end-user confirmation, never inferred from dialogue) and names the 404 outcome on repeat calls. However it never contrasts this tool with near neighbours such as update_session or unenroll_attendee_from_session, so an agent must infer why to archive-destroy rather than update a state field.

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