Skip to main content
Glama

Qecguard for Stim DEM lint, decode, threshold & shield

qec_synth_dem

Read-onlyIdempotent

Free tier: Deterministic rotated-surface and repetition Stim .dem v1.15 synthesizer calibrated to willow-105, sycamore-54, or ibm-heron-133 presets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qec_synth_dem"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoQEC code family: rotated-surface or repetition (default rotated-surface).
seedNoDeterministic Mulberry32 PRNG seed (default 0).
presetNoHardware noise and qubit preset (default willow-105).
roundsNoSyndrome measurement rounds in [1, 100] (default distance).
distanceNoOdd code distance in [3, 11] (default 3).
physicalErrorRateNoOptional physical error rate override in (0, 0.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, matching the description's 'Deterministic' claim. The description adds output format (.dem v1.15) and preset calibration, but leaves 'Free tier' undefined and does not say what the tool returns or how large the generated model may be.

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 definition is a single front-loaded sentence with no filler or repetition. It is dense with domain jargon, but the key purpose and supported presets arrive immediately.

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?

With no output schema and six optional parameters, the description should explain what the synthesizer returns and what 'Free tier' restricts. It identifies the output format only as a .dem v1.15 artifact, leaving return shape and limitations unstated.

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 all six parameters are already documented in the input schema, including enum values and defaults. The description repeats the code families and presets but adds no new meaning beyond the schema.

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 action and output: a deterministic synthesizer that produces Stim .dem v1.15 files for two code families and three hardware presets. It implicitly distinguishes itself from inspect, lint, and benchmark siblings as the generator, but it never names those alternatives or explicitly says it creates DEMs rather than analyzing them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to choose this tool versus qec_inspect_dem, qec_lint_dem, or qec_sample_syndromes. 'Free tier' hints at a service limitation but does not tell the agent when generation is appropriate or when another tool is needed.

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.