Skip to main content
Glama

Qecguard for Stim DEM lint, decode, threshold & shield

qec_inspect_dem

Read-onlyIdempotent

Free tier: Detector-error-model graph/hypergraph inspector reporting detector/observable counts, maxDegree, connected components, graphlike fraction, and dEffLowerBound.

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

Input Schema

NameRequiredDescriptionDefault
demYesStim .dem v1.15 detector error model text.
includeComponentsNoInclude per-component detector indices and error counts (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real value by listing what the tool computes (counts, maxDegree, components, graphlike fraction, dEffLowerBound), but it does not say what dEffLowerBound or graphlike fraction mean, whether computation is costly, or how large a DEM is practical.

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 front-loaded sentence with no filler beyond the "Free tier:" prefix. Every listed metric earns its place as a preview of the return payload.

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, enumerating reported fields is genuinely necessary and mostly done, but the two most opaque terms (dEffLowerBound, graphlike fraction) go undefined and no alternative-tool routing is offered. For a read-only analysis tool with fully documented params this is adequate but leaves real gaps.

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 both `dem` (Stim .dem v1.15 text) and `includeComponents` are already documented with defaults. The description adds no semantics beyond that — it does not explain the cost of enabling includeComponents or any constraints on DEM version support.

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 and resource ("Detector-error-model graph/hypergraph inspector") and enumerates the metrics computed, which lets an agent separate it from siblings like qec_lint_dem or qec_synth_dem by knowing it produces a report rather than linting or synthesizing. It does not explicitly name any sibling, so the differentiation is inferential.

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?

The only usage cue is the "Free tier" prefix, which is a pricing note rather than guidance. It never says when to reach for this inspector instead of qec_lint_dem, qec_decode_benchmark, or qec_threshold_sweep, so an agent must infer the selection condition from the metric list alone.

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.