Perfboard Designer
v0.1.0Design perfboard and stripboard layouts, check the wiring and get a link to open them in the editor.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_parts List parts
Lists the parts a project can place. Without a query: every part, grouped by category, as its id with its name and pin count; call it this way once to see what there is. With a query: the parts whose id, name, category or keywords contain all its words, or the closest ones when none do. Each part's `id` is its definitionId in the project file; use get_part for its pins and how to place it.
| Parameter | Type | Description |
|---|---|---|
kind | string | standard-component: two-lead parts placed between two holes. advanced-component: fixed-footprint parts. ic: dual-row chips and modules. |
query | string | Words to match, e.g. "capacitor", "555", "header", "relay". Leave it out to list every part. |
get_part Get parts
Everything needed to place parts: for each, which project file list it goes in, its pins (offsets from pin 1 at rotation 0) and pin labels, polarity, value unit, holes its body covers, and an example entry. Ask for every part you use in one call with `ids`.
| Parameter | Type | Description |
|---|---|---|
id | string | One part id, instead of `ids`. |
ids | array | Part ids from list_parts, e.g. ["resistor", "ne555", "header-pins"]. |
new_project New project
Starts a project kept here under a projectId: a blank board, or one of the example projects (perfboard://examples/...) to copy from. Returns the projectId and the project file. Then add parts and wires with edit_project, and pass the projectId to every other tool instead of the whole file.
| Parameter | Type | Description |
|---|---|---|
cols | integer | Holes across. 30 when left out. |
example | string | Start from an example instead of a blank board: "555-led-blinker" (555 LED blinker (perfboard)), "555-led-blinker-stripboard" (555 LED blinker (stripboard)). |
name | string | The project's name, used by make_share_link. |
rows | integer | Holes down. 20 when left out. |
strips | string | A stripboard's strips: along rows (horizontal, default) or columns. |
type | string | perfboard (default): a separate pad per hole. stripboard: copper strips joining every hole along each row (or column). |
edit_project Edit project
Changes a project kept here, by a list of ops applied in order: add_part, update_part (move, turn, change value or ref), remove_parts, add_wire (from/to, or a `path` of holes made into one wire per leg), update_wire, remove_wires, set_board, add_cuts / remove_cuts (stripboard), set_pad. If any op can't be done, none are. Returns what changed, where the pins of added or moved parts landed, and the board checked as validate_project does (with any expectNets remembered for it); when it has no errors, also its nets. get_project returns the whole file.
get_project Get project
The whole project file of a project kept here, as the editor would save it (version 3), one entry per line.
| Parameter | Type | Description |
|---|---|---|
projectId * | string |
validate_project Validate project
Checks a project file and lists every problem with where it is: entries the editor would leave out, unknown parts, pins off the board, two parts' pins or leads in one hole, overlapping parts, wires that connect nothing (a loose end, or no pins on their net), duplicate wires, a two-lead part with both leads on one net (shorted out), a wire passing over a pin or lead without ending there (so not joined to it), IC pins and two-lead parts' leads connected to nothing, supply rails shorted together, and on a stripboard, pins shorted by a strip or sitting in a cut hole. With expectNets, every connect…
| Parameter | Type | Description |
|---|---|---|
expectNets | array | The nets the board should make: each a list of pins written REF.pin, e.g. [["U1.8", "U1.4", "R1.1", "J1.1"], ["U1.2", "U1.6", "C1.+"]]. A pin can also be named by its label ("U1.VCC", "D1.K") or as ge… |
project | The whole project file: a version 3 project object, or its JSON text (see the perfboard://docs/project-file resource). Give this or projectId. | |
projectId | string | The id of a project kept here (from new_project, validate_project, edit_project or read_share_link), instead of sending the whole project. |
get_nets Get nets
Which pins the board connects: every net with its name (from its pins, e.g. GND), its pins ("U1.8 VCC" for a chip's pin, "D1.K" or "C1.+" for a polarized lead, "R1.1" otherwise) and the wires on it (indexes into wires). Also pins connected to nothing, wires that connect no pins, junctions (holes where three or more things are joined) and crossings (where a wire goes over another wire or over a hole without joining it). Wires are insulated jumpers: a wire joins only the holes at its two ends, so crossings are information, not connections or shorts. On a stripboard the strips connect too.
| Parameter | Type | Description |
|---|---|---|
project | The whole project file: a version 3 project object, or its JSON text (see the perfboard://docs/project-file resource). Give this or projectId. | |
projectId | string | The id of a project kept here (from new_project, validate_project, edit_project or read_share_link), instead of sending the whole project. |
get_pin_positions Get pin positions
Where every placed part's pins land, as [column, row] holes, with pin numbers and labels (e.g. U1 pin 8 VCC), after rotation, plus holes a part's body covers. Use it to route wires to the right holes. The project file doesn't store these: they follow from each part's anchor, rotation and footprint.
| Parameter | Type | Description |
|---|---|---|
project | The whole project file: a version 3 project object, or its JSON text (see the perfboard://docs/project-file resource). Give this or projectId. | |
projectId | string | The id of a project kept here (from new_project, validate_project, edit_project or read_share_link), instead of sending the whole project. |
refs | array | Only these parts, e.g. ["U1", "R2"]. All parts when omitted. |
render_board Render board
Draws the board as text, one cell per hole with column and row numbers: each part's pins by a key letter and pin number (a1, a2...), holes under a part's body, wire ends, the holes a wire runs over without joining them, strip cuts and marked holes. Below it, which part each key is and every wire with its ends and net. Use it to see where there's free space and how wires run before placing parts or routing more. With format "png", a picture of the board as the editor draws it instead, to see how it looks: parts' bodies and where they reach, labels, wire colours. To show the user the board, use…
| Parameter | Type | Description |
|---|---|---|
area | object | Only this part of the board: two opposite corner holes. The whole board when left out. |
format | string | "text" (default): the board as text. "png": a picture of it, 50 px per hole, scaled down to fit 1000 px. |
project | The whole project file: a version 3 project object, or its JSON text (see the perfboard://docs/project-file resource). Give this or projectId. | |
projectId | string | The id of a project kept here (from new_project, validate_project, edit_project or read_share_link), instead of sending the whole project. |
show_board Show board
Shows the user a picture of the board right in the conversation, as the editor draws it, with a button that opens it in Perfboard Designer. Only in clients that show MCP Apps (e.g. Claude, ChatGPT); elsewhere the user sees nothing, so give them make_share_link's link too. The picture goes to the user, not to you: to look at the board yourself, use render_board.
| Parameter | Type | Description |
|---|---|---|
name | string | The project's name, shown under the picture and in the editor. Defaults to the name it was given in new_project or came with from read_share_link. |
project | The whole project file: a version 3 project object, or its JSON text (see the perfboard://docs/project-file resource). Give this or projectId. | |
projectId | string | The id of a project kept here (from new_project, validate_project, edit_project or read_share_link), instead of sending the whole project. |