Skip to main content
Glama
zesun33

mcp-verilog

by zesun33

verilog_simulate

Compile and run Verilog testbench simulations with iverilog and vvp, catching runtime assertions and testbench errors while preventing infinite loops via timeout.

Instructions

Compiles and runs a behavioral testbench simulation using iverilog + vvp. Captures runtime assertions ($fatal), testbench errors, and protects against infinite loops with a timeout.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional working directory.
filesYesList of Verilog source files including the design and testbench.
dump_wavesNoWhether to record VCD waveforms.
timeout_msNoMaximum simulation runtime in milliseconds before aborting (default: 15000).
top_moduleNoName of the top-level testbench module.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses meaningful non-obvious behaviors: capturing $fatal runtime assertions, detecting testbench errors, and enforcing a timeout to prevent infinite loops. This is strong value beyond the schema.

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?

The description is a single well-structured sentence with no filler. It leads with the primary action, then adds the most important behavioral safeguards, making it easy to parse quickly.

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?

The description covers the core simulation behavior and timeout safeguard, but with no output schema and no annotations, it does not explain what the tool returns or how the captured assertions/errors are presented to the agent. It also lacks explicit sibling differentiation.

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 100%, so all parameters are already documented. The description adds minimal parameter-level nuance, mainly connecting timeout_ms to infinite-loop protection. This meets the baseline but does not exceed it.

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 uses a specific verb+resource construct: 'Compiles and runs a behavioral testbench simulation using iverilog + vvp.' This clearly identifies what the tool does and distinguishes it from the sibling lint/compile tools.

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 purpose implies this is the tool to use when simulation is needed, but it never explicitly states when to choose it over verilog_compile or verilog_lint. There is no when-to-use, when-not-to-use, or alternative routing.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zesun33/mcp-verilog'

If you have feedback or need assistance with the MCP directory API, please join our Discord server