Skip to main content
Glama

fv_analyze_design

Analyze RTL and formal harnesses to inventory state, asserts, assumes, and covers; detect missing or blackbox modules; and flag tool-specific semantic-divergence hazards.

Instructions

Elaborate RTL + formal harness to inspect state complexity (FF/memory leaderboard), inventory asserts/assumes/covers, detect missing/blackbox modules, and warn on Yosys-vs-Synplify-vs-Questa silent semantic-divergence hazards. aux_files (.mem/.hex/.dat ROM tables read by $readmemh/$readmemb) are staged into the working directory without being passed to the HDL frontend.

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_analyze_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
topYes
filesYes
paramsNo
definesNo
frontendNoauto
aux_filesNo
timeout_secNo
include_dirsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose one genuinely non-obvious behavior: aux_files are staged into the working directory and deliberately not passed to the HDL frontend, and it warns that divergence hazards are only surfaced, not resolved. It says nothing about whether the run is read-only, what side effects it has beyond staging, or when timeout_sec aborts.

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-loaded with the analysis capabilities, and the aux_files caveat is a tight, useful second paragraph. The opening phrase 'Elaborate RTL + formal harness' is slightly awkward but every sentence conveys real information.

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 analysis dimensions are well covered and an output schema exists so return values need no explanation. However, for an 8-parameter tool with zero schema descriptions and zero annotations, leaving frontend selection and params undefined is a meaningful gap an agent must guess at.

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% for 8 parameters, and the description only explains aux_files. The ambiguous ones — especially 'frontend' (a free-form string defaulting to 'auto', with Yosys/Synplify/Questa referenced only obliquely) and 'params' — get no explanation. Self-evident names like files, top, defines and include_dirs carry the rest.

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 a specific verb+resource ('Elaborate RTL + formal harness') and enumerates concrete outputs: FF/memory leaderboard, assert/assume/cover inventory, missing/blackbox module detection, and cross-tool semantic-divergence warnings. This is clearly an analysis/diagnostic tool rather than a prover, so it is distinguishable from fv_run_sby or fv_prove_per_property, though it does not explicitly name a sibling.

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?

No explicit when-to-use or when-not-to-use statement, and no prerequisites are given (e.g. 'run before proving to catch blackboxes'). The intended role as a pre-flight diagnostic is only implied by the enumerated checks.

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