Skip to main content
Glama

Back up and clear browser history

browser_history_cleanup
DestructiveIdempotent

Back up and clear browsing history for closed Chrome, Edge, Brave, and Firefox profiles while skipping running browsers; previews changes unless confirm=true.

Instructions

Back up then clear browsing history for every closed browser profile on this machine (Chrome, Edge, Brave, Firefox). A backup snapshot of each profile's history DB is written under backup_root before anything is deleted. Any browser that is currently running is left completely untouched and reported as skipped — this tool never closes a running browser. Requires confirm=true to actually make changes; otherwise it behaves like browser_history_status plus a preview of what would be backed up and cleared.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoMust be true to actually back up and clear. False runs a dry-run preview only.
backup_rootNoDirectory to store timestamped backups (default: Documents\BrowserHistoryBackups)
retention_daysNoDelete backup snapshots older than this many days after a live run

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds substantive context beyond them: a timestamped backup snapshot is written under backup_root *before* deletion, running browsers are skipped rather than terminated, and the default call is a no-op preview. These are exactly the side-effect and safety facts an agent needs before invoking a destructive tool.

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 dense sentences with zero filler, front-loaded with what the tool does and immediately followed by the safety-relevant behavior and the confirmation gate. The browser list and the status-equivalence note both carry real routing information.

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?

With no output schema, the description still conveys the shape of results indirectly by mentioning skipped running browsers and a preview of what would be backed up and cleared. The exact return fields and the location/format of the report are left implicit, a minor gap for a tool with no output schema.

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?

Schema coverage is 100%, so the baseline is 3; the description earns above baseline by explaining the gate semantics of confirm (false = dry-run preview) and clarifying that retention_days pruning happens only after a live run, a timing detail absent from the schema. It does not restate the backup_root default, but the schema already covers that.

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 pair (back up then clear) and a precisely scoped resource: history for every *closed* browser profile, naming the four browsers covered. An agent can distinguish this from browser_history_status because the description explicitly describes the non-confirm path as equivalent to status plus a preview.

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 a clear trigger condition (confirm=true for real changes, default is dry-run) and a clear exclusion (running browsers are never touched and never closed). It references browser_history_status as the read-only equivalent but does not phrase it as an explicit 'use X instead when Y' routing rule, so it falls just short of 5.

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