Skip to main content
Glama
gokeshenzhen

io.github.gokeshenzhen/traceweave

by gokeshenzhen

trace_x_source

Trace an unresolved X/Z signal at a specified simulation time through upstream driver logic to reveal its propagation chain and identify the root cause.

Instructions

When a signal shows X/Z at a target time, trace its propagation chain through upstream driver logic. Uses the selected connectivity route (trusted local/LSF NPI, bounded Source Graph, then Static). A Source Graph trace may expand to bounded direct-child frontiers when an unresolved parent net can be driven by a child output. Any backend or artifact change discards the partial chain and restarts from the original signal, so one returned chain never mixes provenance. Connectivity queries run outside waveform locks. backend_status reports selected versus actual backend; trace_restarted reports a whole-trace retry. Source Graph chain nodes preserve claim_semantics, so an exact positive edge can be used without implying global coverage or exclusive drive. NPI testbench-driven/cross-check evidence is preserved on the node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
time_psYesTrace start time. Accepts an integer (ps), a cursor reference like '@div_3a7c', or a unit literal like '12.34ns'.
top_hintNo
max_depthNoMaximum trace depth. Default: 20
simulatorNovcs / xcelium / auto. Optional — if omitted, server auto-injects the value discovered by get_sim_paths.
wave_pathYes
compile_logYes
signal_pathYes
Behavior5/5

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

With no annotations, the description carries full behavioral burden and succeeds: it discloses chain restarts on backend/artifact changes, never mixing provenance, backend_status vs trace_restarted fields, lock-free connectivity queries, and preserved claim_semantics/NPI evidence. This is unusually thorough.

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 main use case is front-loaded in the first sentence, and subsequent sentences each add a distinct behavioral fact rather than filler. It is dense but could be easier to scan with structured bullets.

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 complex tool with no annotations and no output schema, the description covers route selection, restart semantics, output status fields, and node-level semantics well. The main remaining gap is the lack of a clearer result-shape explanation, though the description provides substantial context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 43%, and required parameters like wave_path, signal_path, and compile_log lack descriptions in both the schema and the tool description. The description references 'target time' and 'original signal' but does not explain how the required inputs should be provided.

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 precise trigger (signal shows X/Z at a target time) and a concrete action (trace propagation chain through upstream driver logic). This clearly scopes the tool and distinguishes it from generic siblings like trace_signal_path.

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 scopes invocation to X/Z-at-time cases and describes the connectivity route fallback order. It does not name an alternative tool or provide when-not-to-use guidance, but the context is clear enough for correct selection.

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