Skip to main content
Glama
chaosAIman

CadenceAI MCP

by chaosAIman

generate_spice_netlist

Generate PSpice or ngspice compatible netlists from predefined templates or custom DSL, and save them to a specified path for circuit simulation.

Instructions

基于模板 (rc_lowpass / rc_highpass / rlc_bandpass / voltage_divider / diode_rectifier / rc_step_response) 或直接 DSL 生成 PSpice / ngspice 兼容的电路网表,并保存到指定路径。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateNo模板名称,可选: rc_lowpass, rc_highpass, rlc_bandpass, voltage_divider, diode_rectifier, rc_step_response
save_pathNo保存路径,默认 ./ai_netlist.cir。
custom_dslNo如果提供,优先使用此自定义 DSL 文本(类 SPICE 语法)。
parametersNo模板参数 (vin, freq, rval, cval, lval, r1, r2, rload, step, tstop)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full behavioral burden. It states the output is a saved netlist file, implying a write/mutation, but does not disclose overwrite behavior, permissions, validation failures, or what happens on error.

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 the verb first. The embedded template list is somewhat redundant with the schema but remains compact and readable.

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

Completeness2/5

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

For a file-generating tool with no annotations and no output schema, the description should explain the return value or success/failure behavior and file-write semantics. It omits all of this, leaving an agent unsure what to expect after invoking the tool.

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 four parameters including template names, save_path default, custom_dsl precedence, and parameter keys. The description adds only a duplicate template list and no extra syntax or format details, matching the baseline of 3.

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 (generate) and resource (PSpice/ngspice-compatible circuit netlist) and lists template options. It implicitly distinguishes from parse_circuit_dsl and run_circuit_simulation by focusing on netlist generation, but does not explicitly contrast with siblings.

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

Usage Guidelines2/5

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

Mentions that generation can be template-based or DSL-based, but gives no guidance on when to choose this tool over alternatives like parse_circuit_dsl or run_circuit_simulation, nor any prerequisites or exclusions.

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