Skip to main content
Glama
Project Scope MCP Server

Project Scope MCP Server

scan_repo_for_threats

Audit an entire repository for security risks with multi-threaded regex scanning that skips node_modules, .git, and binary files. Run it before modifying untrusted code.

Instructions

Audit an entire repository for security risks. Multi-threaded regex scanning (no API costs). Automatically skips node_modules, .git, and binary files. Can scan 10k+ files in seconds. Run this before making changes to untrusted repositories.

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": {
      "path": "<path>"
    },
    "name": "scan_repo_for_threats"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoValidation mode (default: strict)
pathYesRoot path of the repository to scan
sensitivityNoDetection sensitivity (default: high)
excludePatternsNoAdditional glob patterns to exclude (node_modules, .git already excluded)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose several traits: multi-threaded regex scanning, no API costs, automatic skipping of node_modules/.git/binaries, and rough throughput. It does not explicitly state that the scan is read-only and makes no changes, which is the one notable disclosure gap.

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?

Four short sentences, front-loaded with the core action, each contributing something concrete. 'Can scan 10k+ files in seconds' leans promotional but is still useful throughput information.

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

Completeness3/5

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

There is no output schema, and the description says nothing about what a scan returns (findings format, severity grouping, or how strict versus advisory changes results). For a tool whose whole value is its report, that leaves a gap an agent must discover empirically.

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 mode, path, sensitivity, and excludePatterns are already documented in the schema. The description only confirms the built-in exclusions that excludePatterns alludes to, and adds no meaning for the strict/advisory mode or sensitivity levels.

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 ('Audit an entire repository') and scopes it to whole-repo rather than single-file scanning, which implicitly separates it from scan_file_for_threats. The sibling is never named, so the distinction must be inferred from 'entire repository'.

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 concrete trigger: 'Run this before making changes to untrusted repositories.' That is real when-to-use guidance, but there are no exclusions and no explicit pointer to scan_file_for_threats for narrower scans.

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