Skip to main content
Glama

Qecguard for Stim DEM lint, decode, threshold & shield

qec_sample_syndromes

Read-onlyIdempotent

Free tier: Seeded Mulberry32 deterministic syndrome & observable-flip sampler with trigger rates and optional raw sample rows.

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

Input Schema

NameRequiredDescriptionDefault
demYesStim .dem v1.15 detector error model text.
seedNoDeterministic Mulberry32 PRNG seed (default 0).
shotsNoShot count in [1, 100000] (default 1000).
includeRawSamplesNoReturn per-shot detector/observable vectors (<= 4096 shots, <= 524288 bits).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive behavior, so the description is not responsible for the safety profile. It adds genuinely useful behavior beyond that: determinism via a Mulberry32 PRNG, computation of trigger rates, and an optional raw-row mode. The 'Free tier' prefix hints at quota limits without ever stating them.

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?

One front-loaded sentence with no filler; every clause carries signal (seed determinism, trigger rates, raw samples). It is dense with QEC jargon and compresses several distinct capabilities into a single clause chain, which slightly hurts scannability.

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 no output schema, the description does sketch the return content (syndrome/observable samples, trigger rates, optional raw rows), which is what an agent needs. The tier/quota implication is left unexplained, but the core call requirements are covered by the schema.

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 every parameter is already documented with defaults and bounds. The description adds no new parameter meaning, only output-side features like trigger rates that are not parameters. 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 states a specific resource and action: a seeded sampler that produces syndromes and observable-flip samples plus trigger rates from a detector error model. It is clearly a sampling tool, not a decoder benchmark or DEM linter. It does not, however, contrast itself with any sibling, so an agent must infer where it sits in the qec_* family.

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 explicit when-to-use guidance, no prerequisite statement, and no named alternative. The agent learns what the tool does but nothing about when qec_synth_dem or qec_decode_benchmark would be the better choice.

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.