Skip to main content
Glama

create_library_parts

Add new parts to an OrCAD library (.olb) with passive pins and a rectangular body. The original is backed up and duplicate part names are refused.

Instructions

Add new parts to an OrCAD library (.olb), all pins passive, with a rectangular body.

Capture is not used: Cadence's own Tcl shell edits a copy of the library through the OrCAD database API, the copy is checked, the original is backed up to %USERPROFILE%.orcad-mcp\backups and replaced. Capture keeps libraries in memory: restart Capture before placing the new parts. Existing parts are not changed; a name that already exists is refused.

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": {
      "library": "<library>",
      "parts": "<parts>"
    },
    "name": "create_library_parts"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYes
libraryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by explaining the write path (Cadence's Tcl shell against a copy via the OrCAD database API), the safety net (original backed up to %USERPROFILE%\.orcad-mcp\backups, copy checked, then replaced), and the in-memory staleness caveat in Capture. The backup-then-replace and no-overwrite behavior is consistent with destructiveHint=false.

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?

The purpose and its constraints are front-loaded in the first sentence, followed by implementation and safety detail. The backup path and Tcl/API mechanics are slightly verbose for an agent-facing description but do carry operational value.

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 mutating tool with no output schema, the definition covers side effects, backups, name-collision handling, and the post-call Capture restart requirement. Remaining gaps are the return value (e.g., names of created parts) and the expected form of the 'library' argument.

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?

Top-level schema coverage is 0% for 'library' and 'parts', and the description never explains the library path format or the parts structure. It does add real meaning that the schema cannot express, namely that every pin is created passive and the body is rectangular, which tells the agent it cannot set pin electrical type; the nested LibPin/LibPart field descriptions in the schema carry the rest.

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 and resource ('Add new parts to an OrCAD library (.olb)') plus the fixed shape of what is created (passive pins, rectangular body). The library-file scope cleanly separates it from design-level siblings like place_part and place_symbol without naming them.

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?

Gives clear preconditions and exclusions: existing parts are never modified, a duplicate name is refused, and Capture must be restarted before placing the new parts. It stops short of naming an alternative tool for the case where a part already exists or needs editing, so it is context-rich but not fully routing.

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