Skip to main content
Glama
Majrooo

majrooo-mcp-devkit

by Majrooo

run_destructive_command

Execute a dangerous shell command only after the user explicitly confirms the risk and approves running it, bypassing the safety block from the safe runner.

Instructions

Use ONLY when run_safe_command rejected the command AND the user explicitly confirmed in the chat that they want to run it despite the risk. NEVER set confirm:true automatically in reaction to a rejection from run_safe_command. First restate the risk to the user in your own words (exactly what the command will do and what it could break) and wait for their explicit 'yes' or 'I confirm' in the next message. If the user is not present in the conversation (e.g. an automated run without a human), do not use this tool at all. EXAMPLE: If the user says 'do it' for a general task and you then hit a dangerous rejection, that is not sufficient confirmation — you must explain the specific risk and get a new explicit confirmation. If the task targets a project other than the primary one (MCP_PROJECT_ROOT), always pass the "cwd" parameter. Get the list of allowed roots via the "list_allowed_roots" tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoThe directory in which the command will be run (must be inside MCP_PROJECT_ROOT / MCP_EXTRA_ROOTS). Default: the primary project (MCP_PROJECT_ROOT).
commandYesThe command to execute (runs in the directory given by the cwd parameter)
confirmNoConfirmation that you are aware of the risk (required for dangerous commands)
maxLinesNoMaximum number of output lines (default: 200)
timeoutMsNoTimeout in milliseconds (1,000 – 600,000, default 60,000). You can extend it for longer tests/builds, e.g. 180,000 for jest.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

There are no annotations, so the description carries the full burden of behavioral disclosure. It states that the command is risky, may break things, requires restating the risk in the agent's own words, requires a fresh explicit confirmation in the next message, and must not be used when no human is present. This is thorough transparency for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long, but every sentence earns its place by adding a safety constraint or workflow step. The example clarifies what does NOT count as sufficient confirmation, and the core precondition is front-loaded. It could be slightly more polished, but the length is justified for a destructive tool.

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?

This is a high-complexity, high-stakes tool with no output schema and no annotations, yet the description covers all essential context: the exact precondition, the human-confirmation protocol, the automated-run exclusion, the cwd routing rule, and the list_allowed_roots lookup. An agent has everything needed to decide when and how to invoke it safely.

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?

The input schema already documents all 5 parameters with 100% coverage, so the baseline is 3. The description adds meaningful usage-level semantics: when to pass cwd (target project other than primary) and how to get allowed roots via list_allowed_roots. It also clarifies that confirm:true must not be set automatically in reaction to rejection, which goes beyond the schema's generic confirmation description.

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 positions this as the dangerous fallback to run_safe_command: it runs commands that were rejected as risky, but only after explicit user confirmation. It distinguishes itself from the sibling run_safe_command through the rejection+confirmation precondition, even though it never uses a simple 'runs a command' verb phrase.

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 usage condition is explicit and complete: use only after run_safe_command rejected the command AND the user explicitly confirmed in chat. It also gives when-not-to-use (automated runs without a human), warns against setting confirm:true automatically, and points to alternatives like list_allowed_roots for cwd validation.

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

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/Majrooo/majrooo-mcp-devkit'

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