Skip to content

MCP Prompts

MCP prompts are conversation starters. Each prompt generates an initial message that guides the LLM through a multi-step workflow, telling it which tools to call and in what order. Think of them as runbooks --- they encode best practices so the LLM does not have to figure out the workflow from scratch.

mcltspice provides 7 prompts covering filter design, power supply analysis, debugging, optimization, Monte Carlo yield analysis, building circuits from descriptions, and troubleshooting simulation failures.


Walks through designing a filter circuit: selecting a topology, creating the netlist, simulating with AC analysis, measuring bandwidth, and iterating on component values.

ParameterTypeDefaultDescription
filter_typestr”lowpass”Filter response: lowpass, highpass, bandpass, or notch.
topologystr”rc”Circuit topology: rc (1st order), rlc (2nd order), or sallen-key (active).
cutoff_freqstr”1kHz”Target cutoff frequency with units.

Workflow steps:

  1. Use create_netlist to build the filter circuit
  2. Add .ac analysis directive for a frequency sweep
  3. Add .meas directive for -3dB bandwidth
  4. Simulate with simulate_netlist
  5. Use measure_bandwidth to verify the cutoff frequency
  6. Use get_waveform to inspect the full frequency response
  7. Adjust component values and re-simulate if needed

Design tips included in the prompt:

  • For RC lowpass: f_c = 1 / (2 * pi * R * C)
  • For 2nd-order filters: Q controls peaking; Butterworth uses Q = 0.707
  • Use search_spice_models to find op-amp models for active topologies

Guides through measuring the key performance metrics of a power supply: regulation, ripple, transient response, and efficiency.

ParameterTypeDefaultDescription
schematic_pathstr""Path to the power supply schematic. If empty, the prompt asks the LLM to identify or create one first.

Workflow steps:

  1. Use read_schematic to understand the circuit topology
  2. Use run_drc to check for design issues
  3. Simulate with .tran analysis, including a load step if applicable
  4. Use analyze_waveform to measure:
    • Peak-to-peak output ripple
    • Settling time after load transients
    • FFT of the output to identify noise frequencies
  5. If AC analysis is available, use measure_bandwidth for loop gain

Key metrics extracted: output voltage regulation (DC accuracy), ripple voltage, load transient settling time, efficiency.


A systematic debugging workflow: validate the schematic, check models, run the simulation, inspect node voltages, and isolate problems by simplifying the circuit.

ParameterTypeDefaultDescription
schematic_pathstr""Path to the problematic schematic. If empty, the prompt asks the LLM to identify it first.

Workflow steps:

  1. Validate — Run run_drc to catch missing ground, floating nodes, duplicate component names
  2. Check setup — Use read_schematic to review component values and connections
  3. Verify models — Use search_spice_models to confirm all referenced models exist
  4. Run and analyze — Simulate, then use get_waveform to inspect key node voltages and compare against expected values
  5. Isolate — Use edit_component to simplify (replace active devices with ideal sources), then diff_schematics to track which change fixed the issue

Common issues surfaced: wrong node connections, missing bias voltages, component values off by orders of magnitude, model name mismatches.


An iterative optimization workflow that uses optimize_circuit and Monte Carlo analysis to tune a circuit toward a target specification.

ParameterTypeDefaultDescription
circuit_typestr”filter”Type of circuit: filter, amplifier, regulator, oscillator.
target_specstr”1kHz bandwidth”Target specification to achieve.

Workflow steps:

  1. Use list_templates to find a suitable starting point
  2. Create the initial circuit with create_from_template
  3. Simulate and measure current performance
  4. Use optimize_circuit to automatically tune component values:
    • Define target metrics (bandwidth, gain, settling time)
    • Specify component ranges with preferred E-series values
    • The optimizer iterates (typically 10-20 simulations)
  5. Verify the optimized design with a full simulation
  6. Run Monte Carlo with the monte_carlo tool to check yield under tolerances

Metric targets by circuit type:

  • Filters: bandwidth_hz
  • Amplifiers: gain_db and phase_margin_deg
  • Regulators: settling_time and peak_to_peak (ripple)

Walks through a statistical yield analysis: running many simulations with randomized component tolerances, extracting metrics from each run, and computing pass/fail statistics.

ParameterTypeDefaultDescription
circuit_descriptionstr”RC filter”Description of the circuit to analyze.
n_runsstr”100”Number of Monte Carlo iterations.

Workflow steps:

  1. Create or identify the netlist
  2. Use the monte_carlo tool with component tolerances:
    • Resistors: 1% (0.01) or 5% (0.05)
    • Capacitors: 10% (0.1) or 20% (0.2)
    • Inductors: 10% (0.1)
  3. For each run, extract key metrics using get_waveform, analyze_waveform, and measure_bandwidth
  4. Compute statistics across all runs: mean, standard deviation, min/max, and yield percentage

Tips included in the prompt:

  • Use list_simulation_runs to understand stepped data
  • Start with 10-20 runs to verify the setup, then scale up
  • Set a seed for reproducible results during development
  • Typical tolerances: metal film resistors 1%, ceramic caps 10-20%, electrolytics 20%

Builds a complete circuit from a text description, offering three approaches: using a template, building from individual components, or generating a graphical schematic.

ParameterTypeDefaultDescription
descriptionstr”audio amplifier”Plain-text description of what circuit to build.

Three approaches offered:

  1. Template (recommended for common circuits) — list_templates then create_from_template
  2. Component-levelcreate_netlist with search_spice_models and search_spice_subcircuits for model lookup
  3. Graphical schematicgenerate_schematic to produce an .asc file that can also be opened in the LTspice GUI

Verification workflow:

  1. run_drc to catch design issues
  2. .op analysis to verify DC bias point
  3. .tf analysis for gain and impedance
  4. .ac analysis for frequency response
  5. .tran analysis for time-domain behavior
  6. diff_schematics to compare design iterations

A diagnostic checklist for simulation failures and convergence issues. Works through the problem systematically: DRC, installation check, model verification, directive inspection, node analysis, and progressive simplification.

ParameterTypeDefaultDescription
error_descriptionstr""What went wrong --- error message, unexpected results, etc. If empty, the prompt runs a full diagnostic.
schematic_pathstr""Path to the problematic schematic or netlist.

Diagnostic checklist (in order):

  1. Design Rule Checkrun_drc for missing ground, floating nodes, duplicate names, missing simulation directive
  2. Installationcheck_installation to verify Wine and LTspice
  3. Model availabilitysearch_spice_models and search_spice_subcircuits to confirm all referenced models exist
  4. Simulation directiveread_schematic to inspect the directive; verify analysis type, stop time, frequency range
  5. Node connectionsread_schematic to list all components and nets; check for disconnected nodes
  6. Run and inspect — Simulate, check the log file for convergence warnings, use get_waveform to inspect node voltages
  7. Simplify and isolateedit_component to swap active devices for ideal ones; remove non-essential subcircuits; test each stage independently

Common failure modes addressed:

  • Convergence failure: reduce timestep, add initial conditions
  • All-zeros output: check ground connections and source polarity
  • Unexpected clipping: check supply voltages and headroom
  • Oscillation in DC circuits: add small feedback capacitors
  • Model not found: verify .lib / .include paths