Skip to main content
Glama
GuardBee

@guardbee/mcp-security-proxy

Official

agent_graph_auditor__scan_file

Scan a single Python file to find excessive-agency paths in LangGraph, CrewAI, or AutoGen orchestration constructs; helps auditors detect risky agent permissions.

Instructions

Scan a single Python file for excessive-agency paths across LangGraph/CrewAI/AutoGen orchestration constructs

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A3.5/5.0
Behavior3/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. 'Scan' implies a non-mutating read, which is a useful signal, but nothing is said about the return shape, whether it needs auth or a specific Python environment, or how it handles non-matching files or syntax errors.

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 well-formed sentence that leads with the verb and resource and packs the domain scope without filler. Nothing is wasted and nothing essential is buried.

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-argument scanner this is largely adequate, but with no annotations and no output schema the description leaves the return format and file-handling behavior undocumented. It is sufficient to call correctly but not to anticipate results.

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?

Only one parameter exists and schema description coverage is 100%, so the schema fully documents the 'path' argument. The description adds no format, scope, or constraint detail beyond what the schema already provides, matching the baseline for high coverage.

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 Python file), and the exact subject matter (excessive-agency paths in LangGraph/CrewAI/AutoGen constructs). The 'single ... file' qualifier implicitly distinguishes it from the directory/text variants, though it never names them 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?

The 'single Python file' phrasing implies the use case and partially separates it from scan_directory/scan_text siblings, but there is no explicit when-to-use, when-not-to-use, or named alternative. Guidance is inferable rather than stated.

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