Skip to main content
Glama

sessions_trash

Move sessions by IDs or tag to the workspace trash, with RESTORE.txt enabling reversal. Refuses the calling session and sessions created by others unless forced or created together.

Instructions

Move sessions (by ids or tag) to the workspace trash. Reversible: RESTORE.txt.

Refused for the calling session, and unless a session made with sessions_create lists all of them in made_from (force skips only that check). Sessions made from others are left out.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sessions_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
tagNo
forceNo
all_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 so well: it declares the operation reversible (RESTORE.txt), discloses the two refusal conditions, explains exactly what force does and does not skip, and warns that sessions made from others are silently left out of the result. The main omission is no statement about partial success or what the response reports.

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: the core action and selection modes land in the first sentence, with caveats following. Slightly dense with backticks and nested parentheses in the force clause, but every clause conveys a real constraint.

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

Completeness3/5

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

For a mutation tool with no annotations and no output schema, the description covers reversibility and the refusal logic well, which is the hard part. It falls short on the undocumented all_projects parameter and on the shape of the result when some sessions are skipped.

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%, so the description must compensate for all four parameters. It explains ids, tag, and the scoped effect of force, but never mentions all_projects, and it does not state how ids and tag interact when both are supplied (or that they default to null). Partial compensation for a low-coverage schema.

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?

States a specific verb and resource — 'Move sessions ... to the workspace trash' — with the two selection modes (ids or tag) named up front. An agent can distinguish it from sessions_rename, sessions_tag, and sessions_list by the destructive-trash semantics, though no sibling is named explicitly.

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?

Gives substantial context on preconditions and failure modes: refused for the calling session, refused unless a session made with sessions_create lists all targets in made_from, and force bypasses only that check. What it does not do is frame when to reach for this versus alternatives such as tagging or renaming, so selection guidance remains implied.

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