Skip to main content
Glama

delete_session

Deletes a finished session and its local logs and attachments after user confirmation; requires an explicit session ID and preserves the harness history.

Instructions

Delete a finished session and its local logs and attachments. Ask the user first. An explicit session id is required; the harness's own history is kept.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.
sessionYesA session id; the latest session when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the destructive scope (local logs and attachments are destroyed), a retention exception ('the harness's own history is kept'), and a human-confirmation requirement. It omits permissions/ownership requirements and error behavior for non-finished sessions.

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 action and its consequence, then the safety rule, then the parameter constraint. No sentence is filler.

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?

For a two-parameter destructive tool with no annotations and no output schema, the description covers what is destroyed, what is retained, and the confirmation protocol. The remaining gap is the unmentioned routine `id` parameter and behavior when the target session is still active.

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 the baseline is 3. The description usefully hardens the `session` requirement ('an explicit session id is required'), which resolves ambiguity against the schema's stale 'latest session when left out' note, but says nothing about the required `id` (routine) parameter.

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 ('Delete a finished session') and immediately scopes the blast radius ('its local logs and attachments'). The resource is distinct from the sibling delete_routine, so an agent can separate the two without opening a 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?

'Ask the user first' is an explicit confirmation prerequisite, and 'finished session' implicitly excludes live sessions. It does not name an alternative or spell out the when-not condition (e.g., what to do for an active session), so it stops short of the top band.

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