Skip to main content
Glama

xss_scan

Scan any URL for cross-site scripting (XSS) vulnerabilities using Dalfox. Identify reflected, stored, and DOM-based XSS with evidence of vulnerable parameters and payload types.

Instructions

Test for Cross-Site Scripting (XSS) vulnerabilities using Dalfox.

IMPORTANT: The target parameter is named 'url' (not 'target'). Always call as: xss_scan(url="https://example.com/search?q=test")

Dalfox is a powerful XSS scanner that detects reflected, stored, and DOM-based XSS vulnerabilities using pattern analysis and DOM parsing.

Args: url: Target URL to test (e.g. "https://example.com/search?q=test"). MUST be named 'url' (not 'target'). parameter: Specific parameter to focus testing on. If empty, tests all parameters found in the URL. cookie: Session cookie for authenticated testing (e.g. "session=abc123; csrf_token=xyz"). header: Additional HTTP header (e.g. "Authorization: Bearer token"). method: HTTP method to use: GET or POST. Default: GET. data: POST body data for testing POST endpoints (e.g. "q=FUZZ&other=value" — use FUZZ as the injection placeholder, or leave as plain value and dalfox will find injection points). timeout: Override scan timeout in seconds.

Returns: XSS test results with vulnerable parameters, payload types, and evidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
dataNo
cookieNo
headerNo
methodNoGET
timeoutNo
parameterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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. It discloses Dalfox's detection methods, behavior when 'parameter' is empty (tests all), and what the return values include. It does not mention safety or side effects, but as a scanner that only sends HTTP requests, this is less critical.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with an overview, an IMPORTANT callout, an args list, and a Returns section. It is somewhat verbose and repeats the 'url not target' warning, but every section adds value and the layout improves scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters and no schema descriptions, the description provides comprehensive coverage: purpose, all parameter behaviors, and return value format. It is complete enough for an agent to invoke the tool correctly without needing additional context.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates by explaining every parameter in detail: 'url' (with mandatory naming warning), 'parameter' (empty means all), 'cookie' (with example), 'header' (with example), 'method' (GET/POST, default), 'data' (with FUZZ placeholder), and 'timeout'. This is exemplary.

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 opens with a clear, specific purpose: 'Test for Cross-Site Scripting (XSS) vulnerabilities using Dalfox.' It distinguishes itself from sibling scanners (e.g., sqlmap_scan, commix_scan) by focusing solely on XSS and even lists the detection types (reflected, stored, DOM-based).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context, including how to specify the target URL, test POST endpoints with data and FUZZ placeholder, and use cookies for authenticated testing. It does not explicitly mention alternatives or exclusions, but the purpose is so clearly scoped to XSS that the intended use case is evident.

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/rfunix/tengu'

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