Skip to main content
Glama

WAI Quantum job service

Show an error-correcting code and certify its distance

qec_code
Read-onlyIdempotent

Show an error-correcting code and certify its distance: its checks (Z-type: they see X errors) and stabilizers (X-type), k counted by rank, a layout to draw it, the decoders it admits, and its distance certificate. In each sector the certificate gives the least weight of a logical found, a witness of that weight, and every lighter support ruled out by an exhaustive search over connected supports (a bivariate-bicycle code's translations checked as symmetries before use), re-checkable node for node. Give certificate to check one: its witnesses and the search run again. Sealed with the service's key. Quote the certificate's distance and its reading; a search stopped by bound settles nothing past it.

Input Schema

NameRequiredDescriptionDefault
codeYesA code by name: surface:D (the rotated surface code, odd D from 3 to 15), toric:L (2 to 12), steane, color:D (the triangular 6.6.6 colour code, odd D from 3 to 15), bb:72, bb:90, bb:108, bb:144 (or gross) or bb:288 (bivariate-bicycle codes); or {"family", "distance" | "size" | "n"}.
boundNoThe heaviest support to search (default the code's nominal distance).
certifyNoCertify the distance (default true).
certificateNoA certificate (wai.quantum.distance/1) to check against the code.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, and the description adds meaningful context: the certificate is sealed with the service's key, re-checkable node for node, founded on an exhaustive search over connected supports, with symmetry reductions for bivariate-bicycle codes. The `bound` limitation on what the search can conclude is a genuinely useful behavioral disclosure, though terms like 'sector' and 'reading' remain opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the middle sentences are dense and jargon-heavy ('In each sector the certificate gives the least weight of a logical found...'), with 'sector' undefined and several clauses that require re-reading. Roughly 100 words that could be tightened without losing content.

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?

With an output schema present and annotations covering safety, the description adequately covers what the tool produces and how its certificate is validated. The main residual gap is the unexplained 'sector'/'reading' vocabulary that an agent would need to interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds semantics beyond the schema: `certificate` triggers a re-check mode (witnesses and search run again) and `bound` is framed as capping what the certificate can establish. That is real meaning not present in the parameter descriptions.

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 states a specific verb and resource: it shows an error-correcting code and certifies its distance, enumerating the returned artifacts (checks, stabilizers, k by rank, layout, decoders, distance certificate). This clearly separates it from siblings such as qec_decode (decoding) and qec_threshold (threshold estimation).

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?

It does give a clear operational cue: 'Give `certificate` to check one' and notes that a search stopped by `bound` settles nothing past it, which tells the agent how to read results. But there is no explicit guidance on when to reach for this tool versus qec_decode or qec_threshold, and the 'In each sector' framing is never explained, leaving alternatives to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources