Skip to main content
Glama
gokeshenzhen

io.github.gokeshenzhen/traceweave

by gokeshenzhen

build_kdb

Auto-build a missing or stale Verdi KDB from an Xcelium compile log using vericom and elabcom, enabling waveform analysis.

Instructions

Auto-build a Verdi KDB from a parsed compile log using vericom + elabcom. Use this when the simulator is Xcelium (xrun) and the NPI backend reports no KDB, or to force-refresh a stale cached KDB. Output is cached under TRACEWEAVE_CACHE_DIR (default ~/.cache/traceweave/kdb//); cache hits reuse the previous KDB without re-invoking Verdi. When TRACEWEAVE_NPI_EXECUTION=lsf, every cache-miss/rebuild runs on the configured LSF queue and never falls back to a local licensed build. A runnable build.sh is written next to the KDB for inspection or reproduction. Requires VERDI_HOME with bin/vericom and bin/elabcom.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_hintNoOverride the top module. Defaults to the first non-recorder top in compile_result.
simulatorNovcs / xcelium / auto. Optional — auto-detected from the log when omitted.
compile_logYesAbsolute path to the compile/elaborate log to drive the build from.
force_rebuildNoRebuild even if the cache key matches an existing KDB. Default: false.
Behavior4/5

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

With no annotations, the description carries the full burden, and it covers a lot: cache location, cache-hit reuse, LSF queue behavior with no fallback, generation of build.sh, and the VERDI_HOME requirement. It does not mention error behavior or the exact return value, but for a build/caching tool the key side effects and preconditions are disclosed.

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 dense but every sentence earns its place: purpose, when to use, caching behavior, LSF execution semantics, reproducibility script, and environment prerequisite. The most important information is front-loaded in the first two sentences, making it easy for an agent to quickly decide whether to invoke the tool.

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

Completeness4/5

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

For a mutation/build tool with no annotations and no output schema, the description does strong work by covering environment requirements, caching, LSF behavior, and side effects. It stops short of stating what the tool returns on success or failure, which would make it fully self-contained for an agent. Overall, the missing return/error contract is a minor but real gap.

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 the baseline is 3. The description reinforces the meaning of force_rebuild ('force-refresh') and compile_log ('parsed compile log'), but it does not add substantial parameter-level detail beyond what the schema already provides. It adds context around environment variables and execution mode rather than parameter semantics.

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 first sentence states a specific action and resource: 'Auto-build a Verdi KDB from a parsed compile log using vericom + elabcom.' It immediately differentiates this tool from the analysis/query siblings by focusing on construction of a KDB cache artifact. The use cases (Xcelium, missing KDB, stale cache) further disambiguate its purpose.

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?

The description explicitly says when to use the tool: when the simulator is Xcelium (xrun), the NPI backend reports no KDB, or a stale cached KDB needs refreshing. It also gives behavior-specific guidance for TRACEWEAVE_NPI_EXECUTION=lsf. It does not explicitly name a non-use case or contrast with a sibling alternative, but the 'use this when' phrasing is clear enough.

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

Install Server

Other Tools

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/gokeshenzhen/TraceWeave'

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