Skip to main content
Glama
kanishka-namdeo

electron-mcp-server

execute

Run JavaScript in an Electron app session to automate testing and interact with UI elements.

Instructions

Execute JavaScript in the Electron app context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYes
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. Arbitrary code execution is high-risk: the description says nothing about sandboxing, permissions, what is returned, whether the script may be async, or what happens on failure. Only the execution target is disclosed.

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?

A single front-loaded sentence with no filler. It is well-sized, though its brevity here reflects under-specification rather than disciplined conciseness.

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

Completeness2/5

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

For a code-execution tool with no annotations, no output schema, and two fully undocumented required parameters, the description is far too thin. An agent lacks the security context, return-value expectations, and session semantics needed to call it correctly.

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

Parameters2/5

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

Schema description coverage is 0%, so both required parameters (script, sessionId) are undocumented anywhere. The description never mentions that a session identifier is required, nor which session source (e.g., list_sessions) supplies it, so it fails to compensate for the coverage gap.

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

Purpose3/5

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

The verb+resource are stated ('Execute JavaScript in the Electron app context'), so the basic action is clear. However, the sibling tool execute_main_process_script implies a meaningful distinction between renderer and main-process execution that this description never resolves, leaving the agent unsure which of the two to pick.

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

Usage Guidelines2/5

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

No guidance on when to use this versus execute_main_process_script, nor any prerequisites such as needing an active session from list_sessions/connect_to_electron_cdp. The agent must infer usage entirely from the name.

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