Skip to main content
Glama

validate_project

Read-onlyIdempotent

Opens a LibrePCB project in strict mode and runs ERC plus DRC on all boards to catch parse errors, broken references, and design-rule violations.

Instructions

Open the project with librepcb-cli in strict mode (parse errors, broken references, non-canonical files) and run ERC plus DRC on all boards.

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": "validate_project"
  }
}

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

A3.7/5.0
Behavior4/5

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

The description is consistent with the readOnly/idempotent/non-destructive annotations and adds real content the annotations don't carry: strict-mode parsing, broken-reference detection, non-canonical file checks, and ERC plus DRC across all boards. It stops short of saying how failures are surfaced or whether the CLI must be available locally.

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?

A single front-loaded sentence with the action first and the parenthetical scoping detail after; every clause carries information and there is no filler.

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 validation tool the most important unknown is the result shape — whether it returns pass/fail, a list of violations, or throws on error — and with no output schema the description should say so. Prerequisite tooling (librepcb-cli) is also unstated. Scope and behavioral profile are otherwise adequately covered.

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?

Only one parameter exists and the schema fully documents it (path to the *.lpp file or its directory), so the description need not repeat it. 'Open the project' loosely maps to project_path but adds no format or edge-case detail beyond the schema.

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 action on a specific resource: opens the project in librepcb-cli strict mode and runs ERC/DRC on all boards. The parenthetical enumerates what 'strict' means, so the agent knows exactly which checks are performed. It doesn't explicitly differentiate from siblings like get_project_info, keeping it just 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 Guidelines3/5

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

Usage is implied by the nature of a validation operation (run after edits to catch errors), but there is no explicit when-to-use, when-not-to-use, or statement of prerequisites such as librepcb-cli being installed or the project needing to be saved first. The agent must infer the workflow position of this tool.

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