Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Digital Check

digital_check

Lint Verilog with Yosys to catch syntax errors, undriven or multi-driven wires, inferred latches, combinational loops, hierarchy issues and port width mismatches, with file, line and severity for each finding.

Instructions

Lint Verilog with Yosys, without synthesis goals: syntax errors with file and line, hierarchy problems (missing module, wrong port name), undriven wires, wires with several drivers, latches inferred by an incomplete if or case, combinational loops (also through module boundaries), implicit declarations (a misspelt name that became a wire) and port width mismatches. Each finding has severity ('error' or 'warning'), a rule id, file, line (null when Yosys gave none), module, signal and a hint. The call succeeds (ok=true) when the check ran, even if it found errors: read data.findings and values.errors. A syntax error is one finding (Yosys stops at the first). Give Verilog as text in 'source' or as file paths in 'files' (.v/.sv, up to 20). 'top' is optional (empty = check every module). Not a full linter: it reports what Yosys reports. Needs Yosys installed by the user. `include and file-touching system tasks in the source are refused.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "digital_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoName of the top module; empty = check all modules
filesNoPaths of Verilog files (.v or .sv), separated by ';' or line breaks, or a JSON list. Up to 20; 1 MB in all with 'source'
sourceNoVerilog source text. Empty if 'files' is given
languageNo'verilog' (Verilog-2005, default) or 'systemverilog'verilog
timeout_secondsNoTime limit for Yosys, 1 to 120 seconds (default 30)

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that ok=true means the check ran even when errors were found, that results are in data.findings and values.errors, that a syntax error truncates to one finding, that Yosys must be user-installed, and that `include/file-touching system tasks are refused. These are exactly the operational facts an agent needs before invoking it.

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?

Purpose and scope are front-loaded, and the dense enumeration of detected defect types earns its space given the tool's breadth. The long comma-spliced first sentence is heavy to parse, and some detail (finding field list) overlaps the output schema, but there is little pure waste.

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?

For a Yosys-dependent lint tool, the description covers inputs, limits, dependency requirements, security refusals, result-location semantics and the success/error distinction. An output schema exists, so return-value shape need not be re-explained, and nothing essential for correct invocation 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%, so all five parameters are already documented. The description restates the source/files duality, the 20-file limit and the empty-top meaning, which mostly duplicates schema text, and it omits any discussion of language or timeout_seconds. Baseline 3 is appropriate.

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 opens with a specific verb and resource ("Lint Verilog with Yosys") and immediately scopes it against synthesis ("without synthesis goals"), which separates it from siblings like digital_synthesize and digital_equivalent. It then enumerates the concrete defect classes detected, so an agent knows exactly what the tool answers.

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 gives clear usage context: linting only, no synthesis goals, top optional with empty meaning all modules, and source-or-files input. It also states when NOT to rely on it ("Not a full linter: it reports what Yosys reports"). It stops short of explicitly naming an alternative tool for synthesis flows, so a 4 rather than 5.

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

Deploy Server

Other Tools