Skip to main content
Glama
mo9652962-ai

circuit-agent

by mo9652962-ai

export_ipc2581

Read-onlyIdempotent

Generates a single-file IPC-2581B XML fabrication package (stackup, BOM, components, nets, board profile) to replace Gerber+Excellon+TXT bundles for PCB handoff.

Instructions

Export a simplified IPC-2581B single-file intelligent fabrication data package (XML) — stackup, BOM, placed components, nets with pin membership, and board profile — replacing the legacy Gerber+Excellon+TXT handoff bundle accepted by Siemens X / Altium / Zuken / EMS houses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modulesYesComponent modules dict (from synthesize_circuit output).
connectionsNoNetlist connections list.
project_nameNoProject/organization name embedded in the XML (default: HARDWARE_PROJECT).HARDWARE_PROJECT
board_width_mmNoPCB width in mm (default: 70.0).
stackup_layersNoOptional stackup layers ({name, class: 'CONDUCTOR'|'DIELECTRIC', thickness_um, material}).
board_height_mmNoPCB height in mm (default: 50.0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.7

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description usefully adds the packaged contents (single-file XML replacing a multi-file handoff bundle), but says nothing about where the file is written, how output is retrieved, or prerequisites such as needing synthesize_circuit output first.

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 zero filler; every clause carries information (format, contents, audience, alternative). It is dense and long but not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by thoroughly describing what the produced artifact contains. Combined with the annotations' safety profile and the fully documented input schema, an agent has enough to select and invoke it correctly.

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 the schema already documents all six parameters, and the baseline is 3. The description loosely maps its content list (stackup, BOM, nets) onto modules/connections/stackup_layers but adds no syntax, format, or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Export) and resource (IPC-2581B single-file intelligent fabrication data package in XML), then enumerates its contents (stackup, BOM, placed components, nets with pin membership, board profile). This clearly separates it from the other export_* siblings, notably export_gerber_bundle and export_excellon_drill.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The phrase 'replacing the legacy Gerber+Excellon+TXT handoff bundle' implicitly routes the agent away from the gerber/excellon siblings toward this one, and naming Siemens X / Altium / Zuken / EMS houses gives downstream context. It stops short of an explicit 'use instead of export_gerber_bundle when X' statement, so no exclusions are spelled out.

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

Deploy Server

Other Tools