Skip to main content
Glama

fv_run_sby

Runs SymbiYosys (SBY) formal verification jobs in an isolated workspace with process-tree timeouts, from an .sby file or declarative RTL inputs, locally or over SSH, with background polling.

Instructions

Run a SymbiYosys (SBY) job in an isolated workspace with reliable process-tree timeout. Supports either an existing .sby file OR declarative files+top+aux_files+probes+cutpoints. aux_files (.mem/.hex/.dat ROM tables) are staged into [files] without being passed to read_slang. target='local' runs with the local OSS CAD Suite; target='testhost' offloads over SSH and cleans remote temp dirs.

Long runs: MCP clients abort a call that stays silent for about 30 minutes. For anything that may exceed ~20 minutes pass background=True: the call returns a job_id immediately; poll it with fv_job_status (which reports the BMC step reached so far) and stop it with fv_job_cancel. The server executes simultaneous calls in parallel, but a client may send the calls of one message one at a time; background jobs (up to max_local_workers) overlap regardless. Cancelling a blocking call from the client kills its solver processes.

Reading the result: status is what the engines found. A task declared with expect fail (a reachability check) ends with status="FAIL" when it SUCCEEDS; expectation_met and status_note say whether the outcome is the one the task asked for. TIMEOUT / UNKNOWN / CANCELLED are not passes.

skip=N (bmc/cover) skips assertion checks for the first N steps; extra_options adds raw lines to the generated [options] section. keep_traces=False also disables VCD writing (vcd off). log_tail is condensed to log_lines lines; non-PASS runs save the full log to log_file. Probe wires named in probes/post_mem_probes are kept automatically (no (* keep *) needed); undriven wires that are NOT bound are reported in warnings.

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": "fv_run_sby"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
modeNobmc
skipNo
taskNo
depthNo
filesNo
engineNosmtbmc bitwuzla
expectNo
paramsNo
probesNo
targetNolocal
definesNo
frontendNoauto
sby_fileNo
ssh_hostNo
aux_filesNo
cutpointsNo
log_linesNo
async2syncNo
backgroundNo
multiclockNo
keep_tracesNo
timeout_secNo
include_dirsNo
extra_optionsNo
post_mem_probesNo
required_min_depthNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 richly: it discloses the ~30-minute client abort behavior, that cancelling a blocking call kills solver processes, that parallel/background jobs overlap up to max_local_workers, and that FAIL is success under 'expect fail'. It also explains status semantics (TIMEOUT/UNKNOWN/CANCELLED are not passes), that keep_traces=False disables VCD writing, that non-PASS runs save full logs, and how probe/warning handling works.

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?

Front-loads purpose before diving into detail and organizes the rest into distinct themed paragraphs (long runs, reading the result, per-param notes). Dense rather than padded, and the length is largely justified by the tool's 27-parameter complexity, though it borders on verbose in places.

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 27-param, no-annotation, high-complexity tool, it covers the hardest parts well: result interpretation, background/timeout workflow, target offloading, and trace/log behavior. The primary shortfall is that roughly half the parameters get no semantic explanation, which leaves some calling detail to inference.

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 0% across 27 params, so the description must compensate alone. It adds real meaning for key params (skip, extra_options, keep_traces, target, aux_files staging, probes/post_mem_probes, expect) but leaves many undefined—mode, depth, engine, frontend, sby_file, ssh_host, params, defines, include_dirs, async2sync, multiclock, timeout_sec, required_min_depth, task—so it partially compensates.

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?

Opens with a specific verb+resource: 'Run a SymbiYosys (SBY) job in an isolated workspace with reliable process-tree timeout.' It then distinguishes the two input modes (existing .sby file vs declarative files+top+aux_files+probes+cutpoints), so an agent knows exactly what the tool produces.

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?

Provides clear when-to-use context: background=True for runs exceeding ~20 minutes, target='local' vs 'testhost' for SSH offload, and poll/cancel via fv_job_status/fv_job_cancel. It never contrasts this with sibling run tools like fv_run_sec_rtl or fv_run_sec_netlist, so the alternative-selection guidance is incomplete relative to a 5.

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