Skip to main content
Glama

scan_path

Audit a directory or skill/MCP config file for prompt injections, invisible Unicode steganography, credential leaks, broken links, and contradictory rules.

Instructions

Audit a directory or skill/MCP config file for prompt injections, invisible Unicode steganography, credential leaks, broken links, and contradictory rules.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scan_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile or directory path to audit (defaults to current working directory).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; "Audit" implies a non-mutating read, and listing the detection categories (prompt injection, Unicode steganography, credential leaks, broken links, contradictory rules) gives real behavioral context. However it says nothing about how findings are reported, severity levels, cost/latency, or whether it recurses into subdirectories.

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?

A single front-loaded sentence with no filler; the enumeration of checked categories is dense but each item is informative and earns its place.

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 one-optional-param tool with no output schema, the description covers what will be inspected and what is looked for, which is enough to call it correctly. It stops short of describing the shape of the findings, which is the only notable gap.

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% and there is only one optional parameter with a documented default, so the baseline is 3. The description adds only marginal meaning by clarifying that the path can be a directory or a skill/MCP config file rather than raw text.

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 ("Audit") and named resources ("directory or skill/MCP config file") plus the exact classes of problems it hunts for, so an agent knows precisely what the tool does. It does not explicitly contrast itself with the sibling scan_text, but the path/file-level scope implicitly separates it.

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?

Usage is only implied: audit a path when you want a security/hygiene sweep of a directory or config file. There is no explicit guidance on when to pick this over scan_text, no prerequisites, and no stated exclusions.

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