Skip to main content
Glama

logisim_verify

Verify a circuit's behavior against expected outputs using expressions, truth tables, input rows, or clocked sequences.

Instructions

Check that a circuit behaves as expected. Give exactly one of: expressions {output: formula} (checked on every input combination), truth_table (text 'A B | F' with rows '0 1 | 1', x = don't care), rows [{"A": 1, "B": 0, "F": 1}, ...], or sequence [{"set": {...}, "clock": 1, "expect": {...}}, ...] for clocked circuits (state carries over between steps). Names are pin/LED/probe labels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the .circ file (absolute, or relative to the working folder)
rowsNo
circuitNoCircuit inside the file (default: the main circuit)
sequenceNo
expressionsNo
truth_tableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses useful semantics (expressions checked on every input combination, state carries over between sequence steps), but says nothing about whether the circuit file is mutated, what pass/fail output looks like, or error handling for a tool that verifies behavior.

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?

Purpose is front-loaded in the first sentence before the mode enumeration, and each clause adds format detail rather than filler. It is dense but every phrase (e.g., 'x = don't care,' 'state carries over between steps') earns its place.

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

Completeness3/5

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

With no output schema and no annotations, the description should also convey what verification returns (pass/fail detail, mismatch reporting), but it stops at input formats. Input-side coverage is strong, output-side coverage is absent, leaving the tool partly underspecified.

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?

Schema coverage is only 33%, so the description must compensate, and it does: it explains the format of expressions, truth_table, rows, and sequence with concrete inline examples. It omits any mention of the required path parameter or circuit, but the schema already documents those two.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a clear verb+resource: 'Check that a circuit behaves as expected.' An agent can tell this validates circuit behavior as opposed to building or rendering. It does not distinguish itself from the ambiguous sibling logisim_check, which likely sounds similar, so it falls short of a 5.

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

Usage Guidelines3/5

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

The description tells the agent to 'Give exactly one of' four modes and notes sequence is 'for clocked circuits,' which guides mode selection. However, it never states when to pick this tool over siblings like logisim_check, logisim_simulate, or logisim_truth_table, leaving the tool-vs-tool decision to inference.

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