Skip to main content
Glama

Delete a session from history

delete_session
Destructive

Delete a session from your history: it no longer shows or opens anywhere, and its record and what it cost are kept for billing. Logins, saved tasks, site access and spending are not touched. Only with the user's say-so.

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

Input Schema

NameRequiredDescriptionDefault
idYesAny job of the session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description goes well beyond that by naming exactly what is retained (record and cost, for billing) and what is untouched (logins, saved tasks, site access, spending). That retained-vs-destroyed breakdown is the precise context an agent needs before running an irreversible operation.

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 compact passage with the action and its scope front-loaded, followed by the non-effects and the consent precondition. No clause is redundant, and each one carries distinct information.

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 one-parameter destructive tool with no output schema, the description covers effect, retention, non-effects, and consent — most of what an agent needs. It does not state whether the deletion can be undone or whether the session disappears from in-flight views immediately, which is a minor residual gap.

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% for the single id parameter, so the baseline is 3, but the schema's own gloss ("Any job of the session.") is cryptic and the description does not clarify whether the id is a session id, a job id, or either. Nothing in the description compensates for that ambiguity.

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 opens with a specific verb and resource ("Delete a session from your history") and immediately bounds the effect, so an agent can tell it apart from delete_saved_task or cancel_job. It stops short of explicitly naming an alternative tool, but the scope statement does the differentiating work.

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?

"Only with the user's say-so" is an explicit precondition for invocation, which is real routing guidance rather than filler. It gives no when-not conditions or named alternatives, so it lands at clear-context rather than full guidance.

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.