Skip to main content
Glama

verify_truth_table

Checks a Logisim circuit's truth table against expected input/output rows or reference expressions, flagging mismatches on each input row.

Instructions

Check the circuit against expected rows [{"in": {...}, "out": {...}}, ...] and/or reference expressions {output: expr} (checked on every input row).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "verify_truth_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
circuitNo
expectedNo
expressionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a genuine trait beyond the schema — that expressions are 'checked on every input row' — but it says nothing about what happens on a mismatch, whether verification aborts, or what the tool returns, and no output schema exists to fill that gap.

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?

Two compact sentences with the core action front-loaded and no filler. The inline JSON snippets are dense but earn their space by pinning down formats; the parenthetical about row-wise checking is placed slightly awkwardly at the end.

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?

For a four-parameter verification tool with no annotations and no output schema, the description covers the two optional check modes adequately but omits the path/circuit distinction and any description of the verification result. An agent can attempt a call but may mis-set 'circuit' or misread the outcome.

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%, so the description must compensate. It usefully documents the shape of 'expected' ([{"in": {...}, "out": {...}}]) and 'expressions' ({output: expr}), but leaves 'path' and 'circuit' entirely unexplained, including the critical ambiguity of how a circuit string differs from a path.

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?

The description gives a specific verb ('Check') and resource ('the circuit') and enumerates the two comparison targets: expected rows and/or reference expressions. It is clear what the tool does, but it does not distinguish itself from neighbors like truth_table or simulate, leaving the agent to infer the boundary from the name alone.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no mention of prerequisites such as needing a built circuit first. The 'and/or' wording implies the two optional modes, but the agent gets no direction on choosing this over simulate or truth_table.

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