Skip to main content
Glama

Clean Completed Sessions

clean_completed_sessions

Scans all sessions and deletes completed, terminated, failed, or inactive ones to keep session lists clean.

Instructions

Scans all sessions and deletes completed, terminated, failed, or inactive sessions automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_metaNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose the key behavioral trait that this is an automatic bulk delete and lists which session states qualify, which is meaningful. However, it says nothing about irreversibility, required permissions, or whether running it is idempotent/repeatable.

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 front-loaded sentence with no filler. It states the action and the qualifying states without redundancy.

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?

An output schema exists, so return values need not be explained. Still, for an unannotated destructive bulk operation, the description omits irreversibility, auth requirements, and scope limits (e.g., whole account vs workspace), leaving real gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter is a meta field, so there are effectively zero meaningful inputs to document; the baseline for a parameterless tool is 4. The description adds no parameter detail, but none is needed.

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 pair (scans/deletes) and resource (sessions) plus the exact deletion criteria (completed, terminated, failed, inactive). It is distinguishable from delete_session by its bulk scope, though it never names that sibling explicitly.

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 guidance on when to prefer this over delete_session, no prerequisites, no warnings about running a bulk destructive sweep, and no statement of when not to use it. The agent must infer everything from the single declarative sentence.

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