Skip to main content
Glama
AndreyTsibin

mcp-super-app

by AndreyTsibin

Install guard

install_guard

Install a destructive-command guard for Claude Code that blocks irreversible Bash commands (rm, git reset --hard) and allows safe variants, for global or per-project scope, without clobbering existing hooks.

Instructions

Install the destructive-command guard (a PreToolUse/Bash hook) globally into ~/.claude (target=user, default) or into a project's .claude (target=project). Copies destructive-guard.sh into .claude/hooks/ and merges the hook into settings.json WITHOUT clobbering existing keys or hooks (idempotent — safe to re-run). The guard blocks irreversible commands (rm, find -delete, truncate/shred, git reset --hard / clean -f / push --force) while allowing safe variants (git rm, --force-with-lease). Requires jq. Restart the Claude Code session to activate. Note: bootstrap_project already checks for the global (target=user) guard and installs it if missing — you normally only need this tool directly for target='project' or to re-check after a manual jq install.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNoWhere to install: 'user' → ~/.claude (global, default), 'project' → <project_path>/.claude.
project_pathNoAbsolute project path. Required when target='project'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
protectsYesWhat the guard blocks.
warningsYesNon-fatal issues (e.g. jq missing).
hook_statusYesResult of merging the hook into settings.json.
script_pathYesWhere the guard script was installed.
script_statusYesWhether the script was newly written or already present.
settings_pathYes
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It richly covers the safety implications: idempotency, no clobbering of existing settings, required jq dependency, session restart need, and the specific commands guarded. This is far beyond minimal disclosure.

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?

The description is a single dense paragraph, but each sentence earns its place: purpose, mechanics, safety guarantees, prerequisites, activation, and usage guidance. It is front-loaded with the core verb and resource, and the structure is logical, moving from what it does to when to use it.

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 two-parameter tool with an output schema, the description is remarkably complete. It covers installation targets, idempotency, command blocking rules, prerequisite (jq), activation requirement, and the relationship to a sibling tool. This leaves no obvious gaps in understanding what the tool does and how to use it safely.

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?

The input schema already provides complete descriptions for both parameters, including the default for target and the requirement for project_path when target='project'. The tool description mostly paraphrases this information, adding no new semantic meaning beyond the schema, so the baseline score of 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?

The description opens with a clear verb-resource pair: 'Install the destructive-command guard.' It specifies scope (global vs. project) and differentiates itself from the sibling tool bootstrap_project, which is the primary alternative. This is specific and immediately clear.

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?

The description explicitly states when to use this tool directly ('target="project" or to re-check after a manual jq install') and when not to ('bootstrap_project already checks for the global guard and installs it if missing'). It also names the alternative tool, making the decision tree obvious.

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/AndreyTsibin/mcp-super-app-public'

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