Skip to main content
Glama

check_constant_time

Check if a Verilog module's completion signal is independent of secret inputs. Returns CONSTANT_TIME or LEAKY, listing which secrets influence the completion signal.

Instructions

Decide whether a Verilog module's completion signal is independent of declared secret inputs. Returns CONSTANT_TIME or LEAKY, and on LEAKY names the secrets that reach the completion signal. You cannot declare a design constant-time yourself: re-run this tool after any fix.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moduleNomodule name, if several
secretsYesinput names carrying sensitive values; never inferred
verilogYesVerilog-2001 source
observationNocompletion signal name (default 'done')
Behavior4/5

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

With no annotations, the description covers key behavioral traits: it returns a verdict, identifies leaking secrets, and cannot be overridden by the user. It stops short of describing all side-effect or edge-case behavior, but for a read-only checker this is a strong disclosure.

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?

Two compact sentences convey purpose, output, and a behavioral constraint without redundancy or filler. The most important information is front-loaded in the first sentence.

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?

Without an output schema, the description correctly includes return semantics. It covers the core workflow (input Verilog and secrets, get a verdict) and the crucial re-run behavior; optional parameters are already documented in the schema, so the description is sufficiently complete for the tool's complexity.

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 adds only light semantic reinforcement by referring to 'declared secret inputs' and a 'completion signal', which align with the secrets and observation parameters but do not introduce new syntax or format details.

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 description uses a specific verb ('Decide') and resource ('Verilog module's completion signal') and clearly distinguishes the tool's goal from siblings like check_masking or prove_confidential. It also states the output values (CONSTANT_TIME/LEAKY), making the purpose unambiguous.

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?

It clearly implies the use case: determining whether completion depends on declared secrets. It also adds a practical guideline ('re-run this tool after any fix') and a constraint ('cannot declare constant-time yourself'), though it does not explicitly compare with alternative sibling tools.

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/nickharris808/hw-verify-mcp'

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