Skip to main content
Glama

truth_table

Compute a full truth table for a Logisim 2.7.1 circuit with up to 12 input bits, and optionally flag unconnected gate inputs as errors to expose wiring bugs.

Instructions

Full truth table (<=12 input bits) computed by Logisim 2.7.1. strict=true turns unconnected gate inputs into E so wiring bugs are visible.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
strictNo
circuitNo

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 burden and it does disclose two real behaviors: an exponential-ish hard limit of 12 input bits and the strict=true semantics that render unconnected gate inputs as E to surface wiring bugs. It omits failure behavior at the limit, return shape (no output schema), and what the computation actually costs, so it is informative but incomplete for a mutation-free but potentially expensive analysis call.

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 tight sentences with the core capability and its size limit front-loaded, then the strict-flag semantics. The 'computed by Logisim 2.7.1' clause is marginally useful for version-specific behavior but borders on filler.

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 three-parameter analysis tool with no annotations and no output schema, the description covers the key limit and the non-obvious strict flag. It still leaves the agent guessing about the 'path' and 'circuit' parameters and about what the returned table looks like, which is a meaningful gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate. It explains 'strict' well (unconnected gate inputs become E, default true) but says nothing about what 'path' points to or what the 'circuit' selector means, leaving two of three parameters undocumented anywhere.

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 specific verb and resource: it computes a full truth table for a circuit, with a hard size cap of 12 input bits. It is distinguishable in spirit from siblings like simulate or verify_truth_table by the word 'full', but it never names an alternative, so the differentiation is left implicit.

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 '<=12 input bits' clause is a useful precondition that tells the agent when this tool is viable and when it will not scale. However, there is no explicit statement of when to prefer this over verify_truth_table, build_from_truth_table, or simulate, so routing is only implied.

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