Skip to main content
Glama
aferreiraguido

javascript-mcp-server

find_xss_vectors

Identify potential cross-site scripting (XSS) vectors in JavaScript projects by detecting unsafe HTML injection patterns in Vue, Svelte, React, and DOM APIs.

Instructions

XSS vectors (heuristic): v-html (Vue), {@html} (Svelte), dangerouslySetInnerHTML (React), innerHTML/insertAdjacentHTML/document.write (DOM).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName or path of the loaded project
Behavior3/5

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

With no annotations provided, the description carries the transparency burden. It discloses that the search is heuristic and lists exact patterns, which adds useful context about coverage. However, it does not mention read-only behavior, side effects, or output format, though these are likely implied by the tool name.

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 a single, tightly packed sentence that front-loads the purpose and lists specific patterns without any fluff. Every word adds value, making it highly efficient and easy to parse.

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 one-parameter analysis tool with complete schema coverage, the description adequately covers the tool's scope and enumerates patterns. It could mention return values or prerequisites, but the schema already indicates the project must be loaded, so it is sufficiently complete.

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?

The single parameter 'name' is fully described in the schema (100% coverage), so the description adds no additional parameter meaning. Baseline 3 is appropriate because the schema already documents the parameter completely.

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?

The description clearly identifies the tool's function by enumerating specific XSS sink patterns across Vue, Svelte, React, and DOM, which distinguishes it from sibling security tools. The action verb 'find' is carried by the tool name rather than the description, so it loses a point for lacking an explicit verb in the description.

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 framework list implies the tool is for auditing XSS vulnerabilities in projects using those frameworks, but there is no explicit when-to-use guidance or mention of alternatives. It does not exclude other security tools, leaving the agent to infer context from the pattern list.

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/aferreiraguido/javascript-mcp-server'

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