Skip to main content
Glama

build_from_truth_table

Builds a minimized Logisim circuit from a truth table using Quine-McCluskey, mapping outputs to minterm indices and supporting optional don't-care terms.

Instructions

Minimize (Quine-McCluskey) and build. outputs maps name -> minterm indices, where the FIRST input is the most significant bit. Optional dont_cares likewise.

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>",
      "inputs": "<inputs>",
      "outputs": "<outputs>"
    },
    "name": "build_from_truth_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
pathYes
inputsYes
verifyNo
circuitNo
outputsYes
dont_caresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it never says that the tool writes/creates a circuit file, whether it overwrites an existing one, or what 'verify' (defaulting to true) does. The bit-ordering convention for inputs and the treatment of dont_cares are genuinely useful semantic details, but side effects and failure modes are unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences and front-loaded, but the phrasing is telegraphic ('Minimize ... and build.') and the second sentence crams three separate facts — output shape, bit ordering, and dont_cares — into one clause with no structure.

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

Completeness2/5

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

With 8 parameters, nested objects, no annotations, and no output schema, the description is far too thin; the file-writing side effect and the role of half the parameters are absent. Only the bit-order convention and `outputs`/`dont_cares` semantics rise to an adequate level.

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 8 parameters, so the description must compensate and it only clarifies two: the 'outputs' map shape and the optional 'dont_cares'. Nothing is said about path, verify, circuit, x, or y, including the nested-object structure of outputs.

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

Purpose3/5

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

States a specific algorithm (Quine-McCluskey) and that it 'builds', but the object of 'build' is never named — presumably a circuit/file at 'path', though the description never says so. The outputs-format sentence clarifies data shape rather than the tool's action, and no sibling (truth_table, verify_truth_table, build_logic) is distinguished.

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 guidance on when to use this versus truth_table, verify_truth_table, or build_logic, and no preconditions such as requiring a prior truth table or an existing file at 'path'. The only implied usage comes from the name and the mention of dont_cares.

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