Skip to main content
Glama

scan_path

Scans a single source file for leaked secrets and insecure patterns, enforcing paths within the workspace root.

Instructions

Scan a single source file for leaked secrets and insecure patterns. path must be relative to the server's workspace root; paths that escape the workspace are refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that paths must be relative to the workspace root and that escaping paths are refused, which is valuable. However, it does not explicitly state that the operation is read-only, nor describe the output or error behavior beyond path rejection.

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?

The description is compact and front-loaded with the main action, followed by a critical constraint. Every sentence earns its place with no redundancy or filler.

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 simple single-file scan tool with one parameter and no output schema, the description covers the essential purpose and the key path constraint. It could additionally mention typical output format or error cases, but overall it is sufficiently complete for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only lists 'path' as a string, but the description enriches it by specifying it must be relative to the workspace root and that escaping paths are refused. This gives the parameter meaning beyond the raw schema, compensating for the 0% schema description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool scans a single source file for leaked secrets and insecure patterns. The verb 'scan' and specific resource 'single source file' make the purpose distinct, especially against the sibling scan_code.

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 description implies usage for scanning a specific file, but does not explicitly compare to scan_code or state when to prefer one over the other. There are no exclusions beyond the path constraint, which is more a security limitation than a usage guideline.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Th3Circle-app/provekit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server