Skip to main content
Glama

fv_check_mutation

Exposes vacuous or weak formal properties by injecting targeted or random RTL mutations, asserting expected failures, and reporting detection rates and escaped mutant source lines.

Instructions

Mutation quality gate to expose vacuous or overly weak formal properties.

  • strategy='targeted': inject explicit mutations (mutations list) and assert every one FAILs.

  • strategy='random': sample num_mutations Yosys mutations on target_module and report detection rate plus source lines of escaped mutants.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "files": "<files>",
      "top": "<top>"
    },
    "name": "fv_check_mutation"
  }
}

Input Schema

NameRequiredDescriptionDefault
topYes
modeNobmc
seedNo
depthNo
filesYes
engineNosmtbmc bitwuzla
paramsNo
probesNo
definesNo
frontendNoauto
strategyNotargeted
aux_filesNo
cutpointsNo
mutationsNo
async2syncNo
multiclockNo
timeout_secNo
include_dirsNo
num_mutationsNo
target_moduleNo
post_mem_probesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With zero annotations, the description carries the burden, and it does disclose meaningful behavior: targeted mode asserts every injected mutation FAILs, random mode samples Yosys mutations and reports a detection rate plus source lines of escaped mutants. It says nothing about cost, runtime (timeout_sec defaults to 120), or whether this is a long-running job tool like the fv_job_* siblings, which matters for a 21-parameter verification call.

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 goal statement is front-loaded and the two strategy bullets are compact and scannable, with no filler. The hyphenated bullet structure is slightly terse but each line carries distinct information.

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

Completeness2/5

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

The presence of an output schema means return values need not be documented, but for a 21-parameter tool with 0% schema coverage and no annotations, the description leaves the majority of required invocation knowledge unexplained. An agent could pick a strategy but would have to guess at files, top, depth, engine, and the Yosys-related flags.

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 description coverage is 0% across 21 parameters, so the description must compensate, but it only explains 4 of them (strategy, mutations, num_mutations, target_module). The other 17 — mode, seed, depth, files, engine, timeout_sec, cutpoints, async2sync, multiclock, probes, defines, frontend, include_dirs, aux_files, params, post_mem_probes — are undocumented anywhere in the definition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the specific function ('mutation quality gate to expose vacuous or overly weak formal properties') and enumerates its two operating modes, so an agent knows this is mutation-based property-quality validation rather than plain proving. It does not, however, say how it differs from siblings like fv_prove_per_property or fv_run_sby, which also involve running formal checks on properties.

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?

Usage is implied by the stated goal ('expose vacuous or overly weak formal properties') and the strategy-specific behavior tells the agent which mode fits which workflow. There is no explicit when-not-to-use guidance and no routing advice versus the other fv_* tools that also validate properties.

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