Skip to main content
Glama

simulate_spice

Runs a SPICE deck through Proteus's engine, resolves library models and subcircuits, and executes the chosen analysis card to return simulation results.

Instructions

Simulate a SPICE deck (R C L V I D Q J M E G X, .MODEL .SUBCKT .PARAM, .OP/.TRAN/.AC/.DC, .PRINT/.PROBE) with Proteus's engine. Library models/subcircuits (e.g. 2N3904, 1N4148, LM324, OP07 as X) are resolved from Proteus's libraries. SPICE number notation (m=milli, MEG=mega). Pick which analysis card to run with analysis_index. Not supported yet: F H K S W B, .INCLUDE.

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": {
      "deck": "<deck>"
    },
    "name": "simulate_spice"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYes
nameNosim
max_rowsNo
analysis_indexNo

Output Schema

NameRequiredDescriptionDefault
opNo
csvYes
gainNo
nameYes
noiseNo
statsNo
tableNo
familyNo
probesYes
digitalNo
x_rangeYes
analysisYes
csv_rowsNo
warningsNo
partitionNo
distortionNo
solver_optionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full load; it does disclose meaningful behavior: model/subcircuit resolution from Proteus libraries, SPICE number notation (m vs MEG), and the unsupported element set. It omits execution characteristics an agent would care about — runtime, failure modes on unsupported constructs, and what max_rows (default 40) means for returned data.

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?

Roughly three dense sentences, front-loaded with the core action, then supported subset, then resolution rules, then the analysis_index control and exclusions. The parenthetical element lists are long but each item is load-bearing for deciding whether a deck will run.

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?

An output schema exists, so return values need not be described. For a simulation tool the description covers the critical unknowns — engine, library resolution, notation pitfalls, supported subset, and analysis selection — leaving only the secondary parameters (name, max_rows) and error behavior undocumented.

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 0%, so the four parameters appear only as bare titles. The description compensates for analysis_index (which analysis card to run) and implicitly for deck, but leaves name and max_rows entirely unexplained, so the coverage gap is only half closed.

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?

The description names a specific verb and resource ('Simulate a SPICE deck') with Proteus's engine, and enumerates exactly which element types, dot-cards, and analyses are supported. That level of detail makes the scope unmistakable, though no sibling tool (simulate, prospice_run, simulate_project) is named to sharpen the distinction.

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

Usage Guidelines3/5

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

It gives one actionable usage rule — 'Pick which analysis card to run with analysis_index' — and a clear exclusion list ('Not supported yet: F H K S W B, .INCLUDE'). It never states when to choose this over the sibling simulate/prospice_run tools or what prerequisites (e.g. library availability) must hold, so guidance is implied rather than explicit.

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