Skip to main content
Glama
YawLabs

@yawlabs/electron-mcp

Official
by YawLabs

electron_audit_ipc_security

Read-onlyIdempotent

Audit Electron preload and main process IPC code to detect security vulnerabilities like raw ipcRenderer exposure, missing sender validation, and prototype pollution.

Instructions

Analyze preload script and main process IPC code for security issues. Checks for: raw ipcRenderer exposure, missing sender validation, synchronous IPC usage, listener memory leaks, prototype pollution via contextBridge, and insecure channel patterns. Provide the actual code content to analyze.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
preloadCodeNoContent of the preload script (preload.ts/js) to analyze
mainCodeNoContent of the main process IPC handler code to analyze
rendererCodeNoContent of renderer code that uses IPC, to check for anti-patterns
Behavior4/5

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

Annotations indicate read-only, non-destructive, idempotent behavior; the description confirms analysis purpose and adds transparency by listing specific security checks (e.g., raw ipcRenderer exposure, missing sender validation), going beyond annotation detail.

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?

Two sentences: first states purpose, second details checks and instruction. No extraneous content, front-loaded with key information.

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?

With 3 parameters and no output schema, the description adequately states inputs and checks but omits output format (e.g., list of issues, pass/fail). For a security audit tool, this leaves some uncertainty about what the agent receives.

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 coverage is 100% with clear descriptions for each parameter (preloadCode, mainCode, rendererCode). The description reinforces that code content is needed but adds no new semantics beyond the schema.

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 it analyzes preload scripts and main process IPC code for security issues, listing specific checks. This distinguishes it from siblings like electron_audit_security (general) and electron_lint_security (linting).

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 instructs to provide actual code content, implying usage context, but lacks explicit guidance on when to use this tool versus alternatives like electron_audit_security or electron_lint_security.

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/YawLabs/electron-mcp'

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