Skip to main content
Glama

Delete Session

session_delete

Deletes a session from a specified workspace using its session ID and workspace ID or project directory path.

Instructions

Delete a session from a workspace.

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": {
      "workspace": "<workspace>",
      "sessionId": "<sessionId>"
    },
    "name": "session_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesSession ID to delete
workspaceYesWorkspace ID or project directory path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation tool, yet it says nothing about irreversibility, whether session data/history is destroyed, what happens to an in-flight session, or permission requirements. Only the bare word "delete" signals that this is destructive.

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?

A single short sentence with no padding or repetition, front-loaded with the action. It is efficient rather than verbose; the shortfall is under-specification, not bloat.

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

Completeness2/5

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

This is a destructive, two-required-parameter mutation with no annotations and no output schema, so the description needs to say more than it does. Nothing is said about post-deletion state, failure modes, or confirmation, leaving the agent unable to predict the effect of a call.

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 description coverage is 100%, so both parameters (sessionId, workspace) are already documented in the input schema and the baseline is 3. The description's only added nuance is that the session lives in a workspace, which marginally reinforces the workspace parameter but adds no format or constraint detail.

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 states a specific verb and resource ("Delete a session") and adds a scoping qualifier ("from a workspace"), which is enough to separate it from session_create, session_list and session_history. It stops short of explicitly naming a sibling or clarifying how it differs from any cleanup/abort behavior.

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 when-to-use guidance, no precondition (for example whether the session must be stopped or idle first), and no alternative named. An agent must infer that this is the terminal removal step rather than, say, aborting an active session.

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