Skip to main content
Glama

tidy_sessions

Archive completed scheduled-job run sessions to reduce client clutter without deleting data, while results remain in the Assistant thread; set recent runs to keep, defaulting to none.

Instructions

Archive finished scheduled-job sessions, including this one. They are the per-run working sessions the scheduler creates; the results already live in the Assistant thread, so the runs themselves are clutter in every client. Archiving hides them without deleting anything. Call this LAST, once the real work is done.

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": "tidy_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNoHow many recent runs to keep. Defaults to 0 — keep none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 that archiving is non-destructive ('hides them without deleting anything'), that it affects every client, and notably that it includes the current session. It stops short of stating reversibility or any permission requirements.

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-loads the action, then justifies it, then gives the call-timing directive. Every sentence contributes context, though the middle explanatory sentence about the Assistant thread is slightly verbose for what it adds.

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?

Covers what the tool does, why, its non-destructive nature, and when to invoke it — sufficient for a one-parameter tool with no output schema. It leaves open what happens to the live session immediately after it is archived, which matters given the explicit 'including this one' warning.

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% and the single 'keep' parameter is documented in the schema itself, including its default of 0. The description adds no additional meaning about how many runs to retain or how retention interacts with the archiving behavior, so the baseline 3 applies.

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 ('Archive finished scheduled-job sessions') and defines what those sessions are ('per-run working sessions the scheduler creates'). The clarification that archiving hides without deleting implicitly distinguishes it from the destructive sibling purge_sessions.

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?

Gives explicit timing guidance: 'Call this LAST, once the real work is done.' It does not name purge_sessions or another alternative by name, so the when-not-to-use case is only implied through the 'hides without deleting' contrast.

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