Skip to main content
Glama

Scan a folder for tarpits

scan_repo
Read-onlyIdempotent

Scan a directory for obfuscator fingerprints and tarpit files, flagging risky files to skip before spending tokens on an unfamiliar repository.

Instructions

Scan a directory for known obfuscator fingerprints and tarpit files.

Use this before committing a budget to understanding an unfamiliar repository. Skips node_modules, .git, dist, build, pycache and .venv, and checks JS/TS and Python files. Returns scanned, flagged, tool_fingerprints, flagged_files and all_results. Skip every file in flagged_files instead of reading it.

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": {
      "root": "<root>"
    },
    "name": "scan_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootYesPath to the directory to scan.
thresholdNoScore at or above which a file counts as a tarpit (0-100).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.3
    • addedInput schema / properties / root / description
      Added value: +"Path to the directory to scan."
    • addedInput schema / properties / threshold / description
      Added value: +"Score at or above which a file counts as a tarpit (0-100)."
    • addedInput schema / properties / threshold / maximum
      Added value: +100
    • addedInput schema / properties / threshold / minimum
      Added value: +0
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds real operational context beyond them: which directories are excluded (node_modules, .git, dist, build, __pycache__, .venv), which file types are inspected (JS/TS, Python), and the recommended downstream action on flagged files. It does not discuss cost, depth limits, or performance on large repos.

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?

Front-loaded with purpose, then usage context, then behavior constraints, then output. Efficient overall; the enumeration of return keys slightly duplicates the output schema, but it supports the 'skip flagged_files' instruction so the redundancy is mostly earned.

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?

An output schema exists, so return values need not be described in detail, and the description still names the key fields an agent must act on. Combined with skip-list and file-type disclosure, it is nearly complete; only scan depth or performance expectations on large repositories are left unstated.

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 description coverage is 100%: root and threshold are both documented, including the 0-100 range and default of 55. The description adds nothing further about parameter meaning, so the 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?

States a specific verb and resource: 'Scan a directory for known obfuscator fingerprints and tarpit files.' The directory-level scope implicitly separates it from the file-level siblings check_file and check_source, but it never names them, so the differentiation is inferred rather than stated.

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 triggering context ('Use this before committing a budget to understanding an unfamiliar repository') and a concrete follow-up rule ('Skip every file in flagged_files instead of reading it'). It stops short of explicit when-not guidance or naming the sibling tools it replaces for single-file checks.

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

Deploy Server

Other Tools