Skip to main content
Glama

Set the circuit design

set_design

Save and validate the complete circuit (format in get_guide). Returns errors to fix (also electrical ERC) and warnings. Requires a PCBBrew account (sign-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": {
      "project_id": "<project_id>",
      "design": "<design>"
    },
    "name": "set_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
designYes
project_idYesid from create_project or list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive write with no open-world access, so the description doesn't need to restate safety. It adds genuinely new context: the call performs electrical ERC validation, returns errors and warnings the agent must fix, and requires a signed-in PCBBrew account. The main gap is overwrite semantics — whether it replaces an existing stored design or creates a new revision — which matters for a save operation.

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?

Three short sentences, each carrying distinct information: action and format source, return payload including ERC errors, and the auth prerequisite. The core action is front-loaded and nothing is redundant 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 two-parameter tool with a nested design object and no output schema, the description does the important work: it explains the return content (errors, ERC, warnings) and the auth requirement, and points to get_guide for the payload format. The missing piece is behavior on an existing design — replace vs. append vs. reject — which an agent would want before calling on any project that already has a circuit.

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 50%: project_id is documented in the schema as coming from create_project or list_projects, but the nested design object has no schema description. The phrase '(format in get_guide)' partially compensates by pointing to the authoritative structure definition, but the description gives no hint about what the design object contains or how deep/complete it must be. Baseline 3 is appropriate given the schema does half the work.

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 (save and validate) and a specific resource (the complete circuit), which is enough to distinguish it from siblings like simulate_circuit or set_firmware. It also routes the agent to get_guide for the required format. It stops short of explicitly naming an alternative or contrasting use case, so it sits just below the top band.

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 rather than stated: 'Save and validate the complete circuit' tells an agent to come here with a finished design, and '(format in get_guide)' hints at a prerequisite step. There is no explicit when-not guidance, no mention of when to prefer simulate_circuit or check_wiring first, and no statement about what happens if the design already exists.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources