Skip to main content
Glama
lucasgerads

spicelib-mcp

by lucasgerads

run_dc_op

Perform DC operating point analysis on a SPICE netlist. Returns node voltages and device currents by injecting an '.op' command into a temporary copy of the netlist.

Instructions

Run a DC operating point analysis on a SPICE netlist.

Injects a .op command into a temporary copy of the netlist (does not modify the original file). DC op results are small enough to return directly.

Args: netlist_path: Absolute path to the netlist file

Returns: JSON string with keys: type — "dc_op" nodes — dict of node_name → voltage (V) currents — dict of device_name → current (A)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
netlist_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully bears the responsibility of disclosing behavior. It states that the tool 'injects a .op command into a temporary copy of the netlist (does not modify the original file)' and that results are small enough to return directly. This provides clear insight into side effects and performance characteristics, though it could also mention error handling or permissions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured, with separate sections for purpose, behavior, arguments, and return value. Every sentence adds value without redundancy, making it easy to scan and understand.

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?

Given that the tool has only one parameter and an output schema is provided in the description, the description covers the necessary information: what the tool does, how it works, what is returned, and the format of the result. It is complete for its simplicity, though it could mention potential errors or limitations to achieve full completeness.

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

Parameters5/5

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

The input schema has zero description coverage, so the description must add meaning. The Args section clarifies that 'netlist_path' is an 'Absolute path to the netlist file', which provides essential semantic context beyond the schema's mere type definition. This fully compensates for the missing schema descriptions.

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 clearly states the tool performs a DC operating point analysis on a SPICE netlist. The verb 'Run' and specific resource 'DC operating point analysis' are precise. The tool name and description differentiate it from siblings such as AC analysis, sweep, and transient, making its purpose unambiguous.

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?

The description does not provide any guidance on when to use this tool over alternatives like run_ac_analysis or run_transient. There is no explicit context about appropriate use cases, prerequisites, or conditions that would help an AI agent decide when to invoke this tool.

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/lucasgerads/spicelib-mcp'

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