Skip to main content
Glama

electron_cdp_console

Capture and retrieve console logs from an Electron app with level filtering, plus start, stop, and clear monitoring via CDP to debug runtime errors and trace app behavior.

Instructions

Capture and retrieve console logs from the Electron app

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "electron_cdp_console"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
actionYesAction: get logs, clear logs, start/stop monitoring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior1/5

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

With no annotations, the description carries the full burden, yet it discloses nothing behavioral. It never says that the clear action destroys buffered logs, that start/stop toggles persistent monitoring state, whether logs captured before start are retained, or what the captured output looks like. For a tool with a destructive action and stateful monitoring, this is a major gap.

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 short, front-loaded sentence with no filler or redundancy. It is efficient, though the brevity here reflects under-specification rather than disciplined editing.

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 two-parameter, stateful, no-annotation, no-output-schema tool, the definition is too thin: it omits the monitoring lifecycle, the destructive clear behavior, severity filtering semantics, and return format. An agent could invoke it incorrectly by calling get without start.

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 coverage is only 50%: action has an enum description but level has no documentation. The description compensates for neither - it never explains that level filters which log severity is returned, nor how level interacts with get versus start/stop. It adds nothing beyond the enum values themselves.

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?

States a specific verb pair ("capture and retrieve") and resource ("console logs from the Electron app"), so an agent knows the domain immediately. It does not mention the clear action nor differentiate from siblings like electron_cdp_network or electron_generator_read_log, so it stops short of a 5.

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 electron_cdp_network, electron_cdp_performance, or log-reading siblings, and no guidance on the start/stop lifecycle relationship (e.g., that monitoring must be started before logs accumulate). The agent must infer all of this.

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