Skip to main content
Glama
ossenna-hq

ltspice-mcp

by ossenna-hq

operating_point

Read-onlyIdempotent

Read DC operating point data from LTspice/ngspice: node voltages, branch currents, and device parameters, for whole circuit or a single device.

Instructions

Read DC operating point data: all node voltages, branch currents, and each semiconductor's small-signal params (gm/gds/vth/vdsat/caps) — from LTspice's log (run_simulation auto-adds '.options logopinfo' on .op runs) or ngspice's @dev[param] traces, surfaced uniformly by name. Each value carries its SI unit where the simulator declared the type (see units). Pass device='M1' to get just one device's params + terminal currents in a single call.

A run-level solve failure (singular matrix / non-convergence) taints every value here; that simulator line is relayed into warnings — read it before trusting the bias point.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNoFor a .dc sweep raw: the sweep-axis VALUE to read the full bias snapshot at (SPICE notation, e.g. '2.5', '1.2'). Nearest point is used. Default reads the sweep's first point; ignored for plain .op runs (no sweep axis).
stepNoStep index for stepped .OP runs (e.g. ``.step temp ...`` + ``.op``). Default 0 returns the first step. Out-of-range values raise a structured error rather than silently returning the wrong step.
deviceNoNarrow the result to one device: its operating-point params (@dev[param]) and its terminal currents (e.g. Id/Ig/Is(M1)), each typed with its unit. Pass the device reference (e.g. 'M1', 'Q2', or a subcircuit path 'x1.mn'); LTspice subcircuit semiconductors are matched by instance regardless of the log's colon-qualified name. Default returns the whole circuit.
formatNoResponse format: 'json' for structured data, 'text' for human-readable
job_idNoRead the operating point of a specific run of a completed sweep/MC (or single) job instead of a raw_file path; pair with ``run_index``.
raw_fileNoPath to .raw result file. Pass this OR ``job_id`` (a job run), not both.
run_indexNo0-based run to read when ``job_id`` is given (default 0).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepNo
unitsNo
deviceNo
currentsYes
voltagesYes
warningsNo
step_countNo
sweep_valueNo
device_op_pointsYes
Behavior5/5

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

Beyond the readOnly/idempotent/destructive hints, the description discloses important behaviors: SI units where declared, uniform naming across simulators, automatic .options logopinfo, and the critical warning that a solve failure taints all values and appears in 'warnings'. This is valuable context not available from annotations alone.

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 description is well structured: front-loaded purpose, then scope details, then a warning. It is dense and every sentence contributes, though the first paragraph packs many clauses into a single long sentence, slightly reducing readability.

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

Completeness5/5

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

The description covers tool purpose, simulator sources, device filtering, units, and failure-mode warnings. With a rich input schema and an output schema present, nothing critical appears missing for an agent to select and invoke this tool correctly.

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?

Input schema descriptions already cover all 7 parameters thoroughly, so the baseline is 3. The description adds meaningful usage semantics: passing device='M1' yields that device's params plus terminal currents in one call, and explains the uniform naming and unit behavior. This exceeds baseline without needing to restate schema details.

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?

The description opens with 'Read DC operating point data' and enumerates exactly what is included: node voltages, branch currents, and small-signal params. It clearly distinguishes this from waveform, simulation summary, and other sibling tools by specifying the operating-point scope.

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?

It gives clear context on when to use the tool (reading DC operating point from LTspice log or ngspice traces, after run_simulation auto-adds .options logopinfo). It also explains the device-filter use case, but it does not explicitly state when to prefer another tool or when not to use this one.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ossenna-hq/MCP_LTSpice'

If you have feedback or need assistance with the MCP directory API, please join our Discord server