Skip to main content
Glama

path_traversal_test

Test web applications for path traversal vulnerabilities by attempting to read server files using encoded payloads at multiple directory depths.

Instructions

Test path traversal with encoding variants at multiple depths. Tries plain ../, URL-encoded %2e%2e/, double-encoded %252e%252e/, and null-byte/truncation bypasses. Returns results array with payload, status, length, contains_target per attempt, and vulnerable_payloads list. Side effects: Read-only GET requests. Sends ~32 requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL with file parameter, e.g. https://target/image?filename=photo.jpg
parameterYesParameter that accepts filenames
target_fileNoServer file to attempt reading
depthNoMaximum directory traversal depth
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it's read-only (GET requests), sends approximately 32 requests, and returns results in a specific format (array with payload, status, length, contains_target, vulnerable_payloads list). This covers most critical aspects for a testing tool.

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 highly concise and well-structured: it front-loads the core purpose, lists specific encoding variants, details the return format, and notes side effects in just two sentences with zero wasted words.

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?

Given the tool's complexity (security testing with multiple variants) and no annotations or output schema, the description is mostly complete. It explains what the tool does, how it behaves, and what it returns, though it could benefit from more detail on error handling or specific use cases.

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%, so the schema already documents all parameters thoroughly. The description does not add any parameter-specific details beyond what the schema provides, such as examples or usage notes for the parameters. Baseline 3 is appropriate 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.

Purpose5/5

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

The description clearly states the tool's purpose: testing path traversal vulnerabilities with specific encoding variants (plain ../, URL-encoded, double-encoded, null-byte/truncation bypasses) and returning structured results. It distinguishes itself from siblings by focusing on path traversal testing rather than other security tests like SQL injection or XSS.

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 path traversal testing but does not explicitly state when to use this tool versus alternatives. While it's clear from context (sibling tools include various security tests), no specific guidance is provided on prerequisites, target scenarios, or comparisons to other tools.

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

Install Server

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/operantlabs/operant-mcp'

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