Skip to main content
Glama
GuardBee

@guardbee/mcp-security-proxy

Official

prompt_injection_scanner__scan_file

Scan a single file for indirect prompt injection payloads to block hidden malicious instructions before they reach an AI model.

Instructions

Scan a single file (a knowledge-base document, an HTML page, extracted text) for indirect prompt injection payloads

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the file to scan

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It says what the tool scans for, but does not state that it is read-only, whether it modifies or stores contents, or what the result looks like.

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 redundant clauses. The parenthetical file-type examples are compact and useful rather than wasteful.

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?

For a simple one-parameter scanner the purpose is clear, but with no annotations and no output schema the description omits safety context (read-only status) and return information. Adequate but with clear gaps.

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% for the single 'path' parameter, so the schema already documents its meaning. The description adds file-type examples but no additional path semantics. Baseline 3 applies when the schema does the heavy lifting.

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 ('Scan'), resource ('a single file'), and target ('indirect prompt injection payloads'). The 'single file' scope implicitly distinguishes it from sibling scan_directory and scan_text, but no sibling is named explicitly.

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?

Implies usage for file-based scanning by specifying 'a single file' and giving examples of file types, but it does not state when to choose this tool over scan_text or scan_directory, nor any prerequisites or 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