Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Spice Check Netlist

spice_check_netlist

Validate and inspect a SPICE netlist without running ngspice: parse elements, nodes, models, and subcircuits, detect errors like missing ground or floating nodes, and refuse unsupported directives.

Instructions

Check a netlist without running ngspice: parse it against the allow-list and report what it holds (elements by type, nodes, models, subcircuits) and what is wrong with it (no ground node 0, duplicate element names, a missing .model or .subckt, undefined controlling sources, floating nodes). A netlist that uses something the toolkit never runs (.control, .include, .lib, .write, A/N devices, 'file', 'external', random sources) is refused with the line number and the directive. Give the text ('netlist') or a file ('netlist_file'). Works without ngspice installed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "spice_check_netlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
netlistNoThe netlist text (first line = title). Give this OR netlist_file.
netlist_fileNoPath to a netlist file (.cir .sp .spice .net .ckt .txt). Give this OR netlist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the allow-list model, the exact refusal categories (.control, .include, .lib, .write, A/N devices, 'file', 'external', random sources), that refusals include the line number and directive, and that no ngspice installation is required. That is precisely the behavioral context an agent needs before calling.

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?

A single dense paragraph that front-loads purpose, then reporting behavior, then refusals, then inputs, then environment requirement. Every sentence carries information, though the long parenthetical error enumeration makes it heavier than necessary.

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 two-parameter read-only check tool with no output schema and no annotations, the description covers purpose, refusal behavior, error classes, and input modes. The only gap is that the precise shape of the returned report (structure of findings, success vs. failure signaling) is only implied categorically.

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 coverage is 100% and both parameters already document the 'give this OR that' exclusivity, so the description's 'Give the text (netlist) or a file (netlist_file)' largely restates the schema. No additional format or validation detail (e.g., what happens if both are supplied) is added, making the baseline 3 appropriate.

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 a specific verb and resource ('Check a netlist') and immediately narrows scope with 'without running ngspice,' which distinguishes it from the simulation sibling. It then enumerates exactly what the check reports (elements by type, nodes, models, subcircuits) and what it flags as errors.

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?

Usage context is clear: use this to validate a netlist statically and 'Works without ngspice installed,' which implies the alternative is running ngspice via a simulation tool. There is no explicit named alternative or when-not-to-use statement, so it stops short of full routing guidance.

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

Deploy Server

Other Tools