Skip to main content
Glama

purge_sessions

Purge optimization sessions by age or delete all with explicit opt-in. Use dry-run to preview before applying.

Instructions

Purge optimization sessions by age policy or delete all. Safe-by-default: requires explicit parameters. Free tool, not metered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
older_than_daysNoDelete sessions older than N days
keep_lastNoAlways protect the N newest sessions
purge_allNoExplicit opt-in to delete ALL sessions
dry_runNoPreview what would be deleted without actually deleting
Behavior2/5

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

No annotations provided, so description must fully disclose behavior. It mentions safety and freeness, but omits important details: what happens on combining parameters, confirmation steps, response format, or whether deletion is irreversible. For a destructive tool, this is insufficient.

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?

Three sentences, each delivering essential information: purpose, safety, cost. No filler, front-loaded.

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

Completeness2/5

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

With no output schema, description should explain return value or side effects. It is silent on output, error conditions, and interaction between parameters (e.g., purge_all + older_than_days). Incomplete for a potentially destructive tool.

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?

Input schema has 100% coverage with good descriptions. The tool description adds little beyond that, only hinting at the two main modes. Baseline of 3 is appropriate.

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?

The description clearly states it purges optimization sessions, with two modes: by age policy or delete all. This distinguishes it from siblings like delete_session (single session) or prune_tools.

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?

The description says 'Safe-by-default: requires explicit parameters', giving usage context, but fails to mention when not to use this tool (e.g., for single session deletion, use delete_session). No explicit exclusions or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rishi-banerjee1/prompt-control-plane'

If you have feedback or need assistance with the MCP directory API, please join our Discord server