Skip to main content
Glama

run_erc

Read-onlyIdempotent

Run LibrePCB's electrical rule check on a project file or directory to detect design issues and return non-approved ERC messages.

Instructions

Run LibrePCB's electrical rule check. Returns non-approved messages.

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": {
      "project_path": "<project_path>"
    },
    "name": "run_erc"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description usefully adds that output is limited to "non-approved messages", which tells the agent to expect a filtered set rather than a full report, but says nothing about severity levels, message structure, or whether a clean run returns empty.

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 tight sentences with the action front-loaded and the return behavior immediately following. Nothing is wasted or padded.

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 single-parameter read-only check, the definition covers purpose, safety (via annotations), and a rough sense of the return payload. The remaining gap is how to interpret results and when this check is appropriate relative to the DRC sibling, which keeps it just short of full completeness.

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 a single well-documented project_path parameter. The description adds no additional meaning about accepted path forms or behavior for directories vs files, so it sits at the baseline.

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?

"Run LibrePCB's electrical rule check" names a specific verb (run) and a specific resource (electrical rule check), and the second sentence clarifies the output scope. It is clearly distinct from run_drc by naming the rule-check type, though it never explicitly contrasts the two.

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, no prerequisite (e.g. project must exist/be loaded), and no mention of when to prefer run_drc or run_output_jobs instead. The agent must infer call conditions entirely.

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