Skip to main content
Glama

Fix Verilog that does not build

fix_chip

Fixes Verilog that does not compile or gives warnings, such as syntax errors, width mismatches or unintended latches. Builds it with Yosys and Verilator, corrects it, and builds it again after each change. Returns the corrected code, anything still wrong, and a link that opens it with its diagram. Counts toward the daily design limit, except when the code already builds clean (then nothing is changed).

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": {
      "code": "<code>"
    },
    "name": "fix_chip"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe Verilog source code, one or more modules (at most 20,000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"The Verilog source."New value: +"The Verilog source code, one or more modules (at most 20,000 characters)."
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the concrete toolchain (Yosys and Verilator), the iterative correct-then-rebuild behavior, and what the response contains: corrected code, remaining problems, and a diagram link. It also discloses a real cost constraint (counts toward the daily design limit), with a sensible exception. It stops short of saying whether changes are limited to the returned code or how failures mid-loop are handled.

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

Conciseness5/5

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

Four sentences, each carrying distinct information: what it fixes, how it fixes it, what comes back, and what it costs. The purpose is front-loaded and there is no filler or restatement of the title.

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

Completeness5/5

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

With no output schema, the description supplies the return contract (corrected code, remaining errors, diagram link), and it flags the quota cost of invoking it. For a single-parameter tool with a non-obvious multi-step build pipeline, nothing an agent needs before calling it is missing.

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 coverage is 100% and the single 'code' parameter already documents its format and the 20,000-character limit. The description adds no new meaning about the parameter, so the baseline of 3 applies.

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

Purpose5/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 ('Fixes Verilog that does not compile or gives warnings') and enumerates the defect classes it targets: syntax errors, width mismatches, unintended latches. The described fix-build-rebuild loop with Yosys and Verilator distinguishes it from read-only checker or explainer siblings without needing to name them.

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

Usage Guidelines4/5

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

It states the triggering condition clearly (code that fails to compile or emits warnings) and implies the negative case by noting nothing changes when the code already builds clean. It does not explicitly route to an alternative such as a checker or debugger tool for non-destructive inspection, so the boundary with siblings is left implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources