Skip to main content
Glama

Check Deck

check_deck
Read-onlyIdempotent

Detect LTspice 26 SPICE deck errors and warnings that standard lint misses, including bad .step, .meas, and AC expression issues, before running simulations.

Instructions

Check a SPICE deck for LTspice 26 behaviours that ltspice-mcp's own lint does not catch, each recorded on LTspice 26.1: errors LTspice stops on before the run (a .step that makes one step; a .meas WHEN/TRIG/TARG given FROM or TO) and warnings where it runs but gives another number than meant (db() of a complex value in an AC .meas; MAX/MIN/PP/AVG of a signed AC expression; two .step lines beside .op). Give the netlist text or a path to it. Runs nothing; use it before ltspice-mcp's run_experiments.

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": "check_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
netlistNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotent, non-destructive, closed world), and the description adds real value beyond them: it confirms no simulation is run, notes the version basis (LTspice 26.1), and separates hard errors from silent-wrong-number warnings. The only gap is that it doesn't state what happens if both a path and netlist text are supplied, or which wins.

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 purpose is front-loaded in the first clause, and the parenthetical error/warning examples are dense but each carries decision-relevant information. It is longer than typical but the length is earned; minor tightening of the nested examples is possible without losing meaning.

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?

With an output schema present, the description needn't explain return values, and annotations cover safety, so the remaining burden is purpose, inputs, and sequencing — all addressed. The only missing piece is the path-vs-netlist precedence rule, a small gap for a two-parameter read-only checker.

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% and both parameters are undocumented nullable fields, so the description carries the burden. 'Give the netlist text or a path to it' maps the two parameters to their meaning and implies either is sufficient, but it does not state precedence when both are provided or that at least one is effectively required. Useful but incomplete compensation for a zero-coverage schema.

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?

States a specific verb and resource (check a SPICE deck) and narrows scope precisely: 'LTspice 26 behaviours that ltspice-mcp's own lint does not catch'. It even enumerates the categories caught (errors vs warnings) and names the sibling tool it complements, so an agent can distinguish it from a general lint or a simulation run without opening any schema.

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

Usage Guidelines5/5

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

Explicit sequencing guidance: 'Runs nothing; use it before ltspice-mcp's run_experiments.' That names the alternative and the condition that selects it, and the input hint ('Give the netlist text or a path to it') tells the agent how to invoke it. Nothing about when to reach for this tool is left to inference.

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