Skip to main content
Glama

shred

Destructive

Overwrite files with random data multiple times and optionally remove them. Securely erase sensitive files beyond forensic recovery. Requires explicit confirmation.

Instructions

Overwrite file contents multiple times with random data then optionally remove. Destructive and irreversible: shredded data is unrecoverable. Requires explicit --allow_destructive confirmation. Use --dry_run to preview. Use to securely erase sensitive files beyond forensic recovery. Not for simple deletion — use 'rm' for non-sensitive files. See also 'rm'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYesFiles to overwrite.
passesNoNumber of zero overwrite passes.
removeNoRemove files after overwriting.
dry_runNoReport operations without changing files.
allow_destructiveNoAllow real destructive overwrite.
Behavior5/5

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

Beyond the destructiveHint annotation, the description details that data becomes unrecoverable, overwriting is with random data, and the process is irreversible. No contradictions with annotations.

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?

Two sentences with no redundancy. Front-loaded with core action and key behavioral traits. Every sentence adds value.

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

Completeness5/5

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

For a complex destructive tool with no output schema, the description provides sufficient context about behavior, safety, and parameter usage. An agent can correctly select and invoke this tool.

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 covers all 5 parameters with descriptions. The tool description reinforces critical parameters like --allow_destructive and --dry_run, adding context about their role in safety. Minor inconsistency in overwrite data type (random vs zero passes) but still helpful.

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 the tool overwrites file contents multiple times with random data and optionally removes files. It distinguishes from sibling 'rm' by specifying secure erasure beyond forensic recovery, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use (secure erasure of sensitive files) and when not to (simple deletion, use 'rm'). Mentions prerequisites like --allow_destructive confirmation and option to preview with --dry_run.

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/caseSHY/AI-CLI'

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