Skip to main content
Glama

quarantine_repo_traps

Idempotent

Inspect an untrusted repository clone for coding-agent configuration traps and active Git hooks, then optionally move detected files to quarantine to disarm prompt-injection risks.

Instructions

Inspect or disarm Priority-1 coding-agent configuration traps (.agents/, .claude/, .cursor/, AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .windsurfrules) and active .git/hooks/* inside an untrusted local repository clone.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo_dir": "<repo_dir>"
    },
    "name": "quarantine_repo_traps"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoWhen true, list detected trap paths without moving any files.
repo_dirYesPath to the cloned untrusted repository directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the safety bar is lower. The description adds useful scoping (local clone, specific trap paths), but 'disarm' is never defined: it does not say whether files are moved to a quarantine directory, renamed, deleted, or how hooks are neutralized, and reversibility is unstated. The only clue that files are moved comes from the dry_run parameter text, not the description.

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?

A single front-loaded sentence with no filler; the parenthetical file list is dense but each item is load-bearing for recognition. It is slightly comma-heavy and pairs two modes ('inspect or disarm') without separating them.

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?

For a two-parameter tool with full schema coverage and annotations that pin down the safety profile, the description covers the target set and the trust context well. What is missing is the outcome of the non-dry-run path — where trapped files end up and whether the operation can be undone — which matters for a mutating tool with no output schema.

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 100%, so both parameters are already documented, and the dry_run description fully explains listing-versus-acting behavior. The description contributes only the context that repo_dir points at an 'untrusted' clone; it adds no syntax, path, or format detail beyond the schema, so baseline 3 applies.

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?

The description names concrete verbs ('inspect or disarm') and a precise resource: Priority-1 coding-agent configuration files and active .git/hooks inside an untrusted repo clone, even enumerating the exact file patterns. It does not explicitly contrast with the sibling tools, but it is specific enough that an agent can tell what it operates on.

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

Usage Guidelines3/5

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

The phrase 'inside an untrusted local repository clone' implies the triggering situation (auditing a cloned repo before working in it), but there is no explicit when-to-use vs. alternative statement, no guidance on when to choose dry_run inspection versus disarming, and no exclusions such as not running it on trusted working directories.

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