Skip to main content
Glama

Qecguard for Stim DEM lint, decode, threshold & shield

qec_threshold_sweep

Read-onlyIdempotent

Metered ($0.015): Multi-distance and multi-noise-scale sweep fitting Lambda error-suppression, threshold crossing, and Willow baseline comparison.

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

Input Schema

NameRequiredDescriptionDefault
codeNoCode family (default rotated-surface).
seedNoDeterministic Mulberry32 PRNG seed (default 0).
presetNoHardware preset (default willow-105).
roundsNoSyndrome rounds in [1, 25] (default 3).
decoderNoDecoder algorithm (default uf).
distancesNoUnique odd code distances in [3, 11] (default [3, 5, 7]).
noiseScalesNoPositive noise scale multipliers in (0, 100] (default [0.5, 1.0, 2.0]).
shotsPerPointNoShots per (distance, scale) point (default 300).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful non-schema context — it is metered at $0.015 per invocation and performs a multi-point sweep — which signals cost and likely compute weight. It does not say anything about runtime, result size limits, or whether the sweep can fail partway, so it is additive but not rich.

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?

A single dense sentence with the metered price front-loaded, which is the right ordering for a cost-bearing tool. No filler, though the jargon-heavy phrasing ('sweep fitting Lambda error-suppression') takes a moment to parse.

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?

With eight optional parameters and no output schema, the description should convey what comes back; naming the three analyses (Lambda, threshold crossing, baseline comparison) partially does this. It omits return structure, units, and what the Willow baseline comparison actually yields, leaving an agent without a clear picture of the result payload.

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%, with every parameter carrying its own description, defaults, and bounds, so the schema does the heavy lifting. The description only restates the distance and noise-scale dimensions in prose and adds no semantics for seed, rounds, decoder, preset, or shotsPerPoint. Baseline 3 applies.

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 operation (a sweep over code distances and noise scales) and the three analyses it fits: Lambda error suppression, threshold crossing, and a Willow baseline comparison. That is concrete enough for an agent to recognize the capability, but it gives no explicit contrast with siblings like qec_decode_benchmark or qec_sample_syndromes, leaving the boundary to inference.

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?

Usage is only implied: the phrase 'multi-distance and multi-noise-scale sweep' suggests this is the tool for threshold/Lambda characterization rather than single-point decoding, and the Willow baseline mention hints at a specific comparison scenario. There is no explicit when-to-use, when-not-to-use, or named alternative, so a routing agent must infer the selection criteria.

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.