Skip to main content
Glama
uitkhoanna

zk-circuit-auditor-mcp

by uitkhoanna

audit_circuit

Audits zero-knowledge circuits (Circom, Noir, Halo2) for soundness and constraint bugs, returning structured findings and a soundness score.

Instructions

Audit a ZK circuit (Circom, Noir, or Halo2) for soundness and constraint bugs. Returns structured findings, a summary, and a 0-100 soundnessScore. Each finding is tagged with a ZK Weakness Classification id (ZKWC-001..015).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesThe full circuit source code as a string.
langNoSource language. If omitted, the auditor auto-detects from the source.
Behavior3/5

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

With no annotations, the description bears the transparency burden. It discloses return values (findings, summary, score, ZKWC tags) but does not confirm read-only behavior or mention side effects, auth needs, or limits. Adequate for a non-destructive audit tool, but not explicit.

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 sentences, directly conveying purpose and output without unnecessary words. Front-loaded with action and resource, followed by return structure. No redundancy.

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?

Given no output schema, the description adequately explains return values (structured findings, summary, score, ZKWC ids). For a tool with two parameters, this covers the essentials, though noting whether the audit is read-only would add clarity.

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 100%, so the description adds little beyond schema. It restates the supported languages, which are already in the enum, and does not detail format or constraints beyond 'full circuit source code'. Meets baseline but doesn't elevate.

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 clearly states the tool audits ZK circuits for soundness and constraint bugs, specifying supported languages (Circom, Noir, Halo2). This distinguishes it from siblings like check_constraint (specific check) and explain_circuit (explanation), as the verb 'audit' and scope are unique.

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?

The description implies the tool is for comprehensive audits but does not explicitly state when to use it versus alternatives like check_constraint or explain_circuit. No 'when-not-to-use' guidance is provided, leaving the agent to infer.

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/uitkhoanna/zk-mcp'

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