Skip to main content
Glama

Delete

delete

Permanently remove a worker session from the vendor and local store, including its worktree. Use when a session is no longer needed; the action cannot be undone.

Instructions

Delete a session at the vendor and in the store, and remove its worktree. It cannot be undone.

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

Input Schema

NameRequiredDescriptionDefault
sessionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses that deletion happens in three places (vendor, store, worktree) and that the operation is irreversible. It stops short of covering failure behavior, permission requirements, or whether worktree removal cascades to uncommitted files.

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?

A single tight sentence with the action and blast radius front-loaded and the irreversibility warning last for emphasis. Nothing is wasted.

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?

The tool is simple (one required parameter) and has an output schema, so return values need not be described. The description covers destructiveness and target scope well; only edge-case behavior and parameter format remain uncovered.

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 0% for the single required 'session' parameter, so the schema adds no meaning. The description only implies that the parameter identifies the session being deleted, without stating its format, ID type, or lookup behavior.

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 (delete) and resource (a session), and enumerates the scope of removal: at the vendor, in the store, and its worktree. It is clear what the tool does, though it never names a sibling such as archive or prune to make the destructive/non-destructive split explicit.

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?

Usage is only implied by the irreversibility warning, which signals this is the last-resort option rather than archive or unarchive. There is no explicit statement of when to prefer this tool over archive, prune, or unarchive, and no prerequisites are given.

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