Skip to main content
Glama

Qecguard for Stim DEM lint, decode, threshold & shield

qec_lint_dem

Read-onlyIdempotent

Free tier: Stim .dem v1.15 static preflight validator (probabilities, undeclared D#/L# targets, cancelling duplicates, orphaned hyperedges).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dem": "<dem>"
    },
    "name": "qec_lint_dem"
  }
}

Input Schema

NameRequiredDescriptionDefault
demYesStim .dem v1.15 detector error model text (<= 262,144 bytes).
strictNoWhen true, warnings mark valid=false (default false).
maxErrorsNoMaximum errors/warnings returned per category (1..256, default 256).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the lower bar applies; the description adds real value by specifying that validation is 'static' (no simulation) and by naming the four check categories. It still leaves the failure semantics (what a warning vs. error looks like) partly to the schema's 'strict' flag.

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 sentence with the purpose front-loaded and no filler; the parenthetical check list is dense but every item conveys a distinct validation rule. The leading 'Free tier' label is slightly distracting but does carry useful quota context.

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 no output schema, the description carries the burden of explaining what a result contains, yet it never says how errors/warnings are reported or how line references work. The 'per category' phrasing in maxErrors hints at structure but does not close the gap for an agent interpreting results.

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 three parameters (dem, strict, maxErrors) are already documented in the schema. The description adds no syntax, size, or version nuance beyond what the schema states, so the baseline of 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?

States a specific verb phrase and resource: 'Stim .dem v1.15 static preflight validator', then enumerates what it validates (probabilities, undeclared D#/L# targets, cancelling duplicates, orphaned hyperedges). This clearly separates it from synthesizers or decoders among the siblings, though no sibling is named explicitly.

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?

'Preflight' strongly implies running it before simulation or decoding, and 'Free tier' signals a quota context. However, there is no explicit when-to-use vs. when-not guidance and no mention of qec_inspect_dem or other alternatives for overlapping checks.

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.