Skip to main content
Glama

run_drc

Read-onlyIdempotent

Run a design rule check on a LibrePCB project or specific board with each board’s own DRC settings to identify rule violations before fabrication.

Instructions

Run LibrePCB's design rule check with each board's own DRC settings.

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_drc"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardNoBoard; default: all boards
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.2/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 adds useful behavior context – rule sets come from each board's own settings rather than from arguments – but says nothing about what a run produces (violations, pass/fail, blocking or not).

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 the verb first and no filler. The trailing clause about per-board settings is informative, though its phrasing ('each board's own') is slightly loose when a single board may be targeted.

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?

For a two-parameter check tool with no output schema, the description leaves the agent guessing what is returned – a list of violations, a boolean, or a report path. It is adequate to invoke the tool correctly but not complete enough to interpret or plan around the result.

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 description coverage is 100%, so both parameters are already documented in the schema. The phrase 'each board's own DRC settings' only marginally reinforces the default all-boards behavior of the optional board parameter, so the baseline of 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?

States a specific verb (run) and resource (design rule check) plus a scope qualifier: it applies each board's own DRC settings. An agent can distinguish it from run_erc by the 'design rule' vs 'electrical rule' wording, though no sibling is named 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 statement of when to use this versus run_erc or when not to, nor any prerequisite (e.g. project must contain boards). The only implied guidance is that per-board rule configuration is picked up automatically rather than passed in.

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