Skip to main content
Glama

viewport_screenshot_cleanup

Delete obsolete viewport screenshot sessions or list stored sessions to free disk space, with options for all older sessions or a specific session.

Instructions

Clean up screenshot files to free disk space.

Args: mode: Cleanup mode: - "old_sessions": Delete all sessions except the current one - "specific": Delete a specific session by name - "list": Just list all sessions without deleting session_name: Required when mode is "specific"

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

Input Schema

NameRequiredDescriptionDefault
modeNoold_sessions
session_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the key behavioral trait that 'old_sessions' deletes all sessions except the current one, which is genuinely useful. However, it never says deletions are irreversible, whether files can be recovered, what a 'session' physically is on disk, or what happens to ongoing captures.

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?

Front-loaded purpose sentence followed by a compact mode list; every line earns its place and nothing is padded.

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?

Output schema exists so return values need no explanation, but for an unannotated destructive tool the description should state irreversibility and the meaning of the 'current session' boundary. It is adequate to call the tool correctly but thin on the consequences of choosing the destructive modes.

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 0% and the schema declares no enum for mode, so the description contributes all real meaning by listing the three mode values and stating session_name is required only for 'specific'. That is valuable, but it does not clarify the default behavior ('old_sessions' is the schema default yet the description never says the default is destructive) or whether unknown session names error out.

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 ('Clean up screenshot files to free disk space'), which clearly separates it from the capture siblings like viewport_screenshot and viewport_auto_screenshot. It stops short of naming siblings for differentiation, but the purpose is unambiguous.

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?

The mode enumeration effectively documents when to use each variant: 'list' is presented as the non-destructive alternative, 'specific' as the targeted delete, and 'old_sessions' as the bulk default. What is missing is guidance on which to prefer and any caution before choosing a destructive mode.

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