Skip to main content
Glama

reset_schematic

DestructiveIdempotent

Revert an LTspice schematic to its pre-session state, undoing all edits made during the current session. Provides a recovery escape hatch for when a sequence of edits goes wrong.

Instructions

Revert an .asc schematic to the state it had BEFORE the first edit this session — a recovery escape hatch for when a sequence of edits went wrong. The server snapshots each .asc file's bytes just before its first in-session mutation (add_component, set_component_value, move_component, connect, apply_schematic_ops, etc.); this restores that snapshot exactly and drops it (so a later edit establishes a fresh restore point). Because add_component is a trigger, the first add_component on a freshly created schematic snapshots the empty file — so reset can revert all the way back to the empty post-create state, dropping every component added this session. Returns reverted=false (not an error) when the file has no recorded in-session edits. Note: the snapshot lives only for the current server session — it does not persist across restarts, and it is not a substitute for version control.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to .asc schematic to revert to its pre-session state
formatNoResponse format: 'json' for structured data, 'text' for human-readable

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
revertedNo
bytesNo
Behavior5/5

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

Adds significant detail beyond annotations: explains snapshot restoration precisely, including that the snapshot is dropped after reset (so subsequent edits establish new restore point). Describes behavior with fresh schematics (empty file snapshotted on first add_component). Notes return of reverted=false for no edits, and session-persistence limitation. No contradictions with annotations.

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?

Single paragraph is well-organized: starts with core purpose, then explains mechanics, then edge cases and notes. Every sentence adds value, no redundancy. Efficient and clear.

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?

Given tool complexity (stateful reverts with snapshot management) and presence of output schema, the description covers all essential behavioral aspects: snapshot establishment, reset action, return value on no edits, session lifetime. No significant gaps.

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 100%, with adequate descriptions for path and format. The description adds no extra meaning for parameters beyond what the schema already provides. Baseline 3 is 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?

Clear verb 'Revert' and specific resource '.asc schematic' to a pre-edit state. Distinguishes from sibling mutation tools like add_component, move_component, etc., by explicitly stating it reverts changes. Context of 'first edit this session' defines scope accurately.

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?

Explicitly states use case: 'recovery escape hatch for when a sequence of edits went wrong.' Provides context for when it applies (edits this session) and notes that it is not a substitute for version control. Lacks explicit 'when not to use' but implications are clear.

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/Cognitohazard/ltspice-mcp'

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