Skip to main content
Glama

electron_check_deprecated_apis

Read-onlyIdempotent

Scan Electron code for deprecated or removed APIs and return each match with its replacement and the version where it was deprecated or removed. Use it to plan migrations before upgrading Electron.

Instructions

Scan code for usage of deprecated or removed Electron APIs. Returns a list of deprecated APIs found with their replacements and the version they were deprecated/removed in.

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": {
      "code": "<code>"
    },
    "name": "electron_check_deprecated_apis"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesSource code to scan for deprecated API usage
electronVersionNoCurrent Electron major version to determine what's deprecated (default: 45)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety and repeatability are covered. The description adds useful disclosure with the return payload (APIs found, replacements, deprecation/removal version). It omits any note on scanning limits or failure behavior, but the schema's 500000-char maxLength cap is visible.

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, each earning its place: one states the action, the other states the return shape. Nothing is repetitive or wasted.

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 two-parameter read-only scanning tool with full annotation coverage and a clear return description, this is close to complete. The remaining gap is the absence of any workflow guidance or reference to related migration/audit tools.

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%, so both parameters are documented in the schema, including the electronVersion default of 45. The description adds no extra meaning about how the version affects results or what a code-only call with defaults returns, so baseline 3 applies.

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 opens with a specific verb and resource: "Scan code for usage of deprecated or removed Electron APIs." That is concrete enough that an agent can distinguish it from audit-oriented siblings such as electron_lint_security or electron_migrate_version, but the description never names or contrasts those alternatives explicitly.

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?

There is no when-to-use guidance: nothing says whether to call this before or instead of electron_migrate_version, or what to do with the results. The reader is left to infer the workflow context from the tool name alone.

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

Deploy Server

Other Tools