Skip to main content
Glama

build_preset

Build verified Logisim circuits from presets such as adders, multiplexers, decoders, and comparators, configuring bit widths and saving to a specified path.

Instructions

Textbook circuits from gates: half_adder, full_adder, ripple_adder (bits 1..8, default 4), mux (select_bits 1..3, default 1; inputs D0.., S..), decoder (bits 1..3, default 2, optional EN), comparator (bits 1..4, default 2; outputs EQ GT LT). Circuit defaults to the preset name. Verified in Logisim after building.

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>",
      "preset": "<preset>"
    },
    "name": "build_preset"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
bitsNo
pathYes
enableNo
presetYes
verifyNo
circuitNo
select_bitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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, and it is thin for a mutation tool. 'Verified in Logisim after building' hints at the verify step, but the definition never says whether an existing circuit at `path` is overwritten, what `path` refers to, what errors look like, or whether the build is atomic.

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?

The preset catalog is packed into a single front-loaded sentence with per-preset constraints, followed by two short clarifications on circuit naming and verification. It is dense but every clause carries information, with no filler.

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?

For a nine-parameter mutating tool with no annotations and no output schema, the definition omits critical context: the meaning and overwrite behavior of the required `path`, the role of `verify`, and what the tool returns on success. The preset details are strong, but an agent still cannot safely invoke it without opening the schema and guessing.

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% across nine parameters, so the description must compensate. It does well for bits, select_bits, enable (optional EN on decoder), and circuit (defaults to the preset name), but leaves the required `path` and the x/y parameters entirely unexplained, so compensation is only partial.

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 names a specific verb and resource ('Textbook circuits from gates') and enumerates the exact presets it can produce, so an agent knows precisely what it builds. It does not explicitly contrast itself with siblings like build_from_truth_table or build_logic, so it stops short of full differentiation.

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?

Usage is implied by the preset catalog and the parameter defaults per preset (e.g. bits 1..8 default 4 for ripple_adder), which tells the agent what inputs each preset accepts. There is no explicit when-to-use-this-versus-alternatives guidance and no statement of prerequisites or of when the tool should not be used.

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