Skip to main content
Glama

simulate

Run headless circuit analysis with Proteus ProSPICE to return voltages, currents, gain, stats, and CSV results without a GUI.

Instructions

Simulate a circuit headless with Proteus's own engine (ProSPICE) and return numbers. Fast (~2 s), no GUI. spec = {"parts":[{"ref":"R1","kind":"R","nodes":["in","out"],"value":"1k"}, ...], "analysis": {"type":"op"} | {"type":"transient","tstop":"5m","tmax":"5u"} | {"type":"ac","fstart":10,"fstop":"1M","points":20,"mode":"dec"} | {"type":"dc","source":"V1","start":0,"stop":5,"step":0.1}, "probes":["v(out)","i(R1)"], # default: all node voltages; i(ref) inserts a current probe (current INTO pin 1) "models":{"MYD":{"type":"D","params":{"IS":"1n"}}}, "temp":27} kinds: R C L (value: 1k 10u 2.2M... ISIS notation: m=milli, M=mega) | V I (value=DC; "wave":{"type":"sine","amp":1,"freq":1000} | pulse{low,high,delay,rise,fall,width,period} | exp | sffm | pwl{points:[[t,v]]}; "ac":true marks the AC source) | D Q QP J JP M MP (nodes D:[A,K] Q:[C,B,E] J:[D,G,S] M:[D,G,S,B]; "model": a Proteus library name like 2N3904, 1N4148 or one in spec.models) | E G (nodes [out+,out-,ctrl+,ctrl-], value=gain) | OPAMP (ideal, nodes [in+,in-,out], optional gain/rout) | X (SPICE subcircuit: "subckt":"TL072" from Proteus's libraries or text in spec["subckts"]; nodes in the subcircuit's port order, e.g. op-amps [in+, in-, V+, V-, out]). Node "0" is ground. SPICE sign conventions for I and G. Returns summary numbers (stats / gain / op), a downsampled table and a full CSV path; use measure() for more.

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": {
      "spec": "<spec>"
    },
    "name": "simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNosim
specYes
max_rowsNo

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.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses headless execution, a ~2 s runtime, default probing of all node voltages, the current-into-pin-1 convention, SPICE sign conventions, and node '0' as ground. It omits side effects such as writing a CSV file to disk (only implied by 'full CSV path') and any mention of permissions or failure behavior.

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?

It is front-loaded with the purpose and the spec, then degrades into a dense pseudo-BNF block of kinds and node orders that is efficient but hard to scan. Nearly every clause carries real information, so the density is justified, though the kind/model/node-order material would read better as a list than a run-on line.

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 highly complex domain tool this is close to complete: enums, node conventions, value notation, AC/transient/DC/op analyses and subcircuit port ordering are all covered, and an output schema exists so return values need less prose explanation. Missing pieces are the semantics of 'name' and 'max_rows' and where the CSV artifact lands.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% on a free-form nested object, so the description must compensate, and it does: it documents the spec shape (parts/analysis/probes/models/temp), the four analysis types with their fields, every supported kind with node ordering, and the string value notation (m vs M). The remaining gap is that the top-level 'name' and 'max_rows' parameters get no mention at all, including what max_rows controls in the downsampled table.

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 opening sentence gives a specific verb, resource, engine and execution mode: 'Simulate a circuit headless with Proteus's own engine (ProSPICE) and return numbers.' This distinguishes it from the GUI path, but it never names or characterizes the closest siblings (simulate_spice, prospice_run, simulate_project) that an agent would otherwise have to disambiguate by trial.

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?

Usage context is implied rather than stated: 'Fast (~2 s), no GUI' signals a quick numeric run, and the closing 'use measure() for more' routes one follow-up explicitly. There is no statement of when NOT to use it, no prerequisite/ordering guidance, and no contrast against the other simulation tool variants.

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