Skip to main content
Glama

Quantum Expectations

qLDPC Code Catalog (Quantum Low-Density Parity-Check)

list_qldpc_codes
Read-onlyIdempotent

Return the catalog of supported qLDPC (quantum low-density parity-check) error-correction codes (id, label, family, n, k, d, circuitLevelDistance, ancilla counts, roundsPerLogicalOp, threshold, fitCoefficients {c0, c1, c2}, logicalErrorExponent [alpha = d_circ/2], source URLs, provenance, caveats, and architecture: the instruction-level data of a published architecture that makes the code computable, or null). The per-block, per-syndrome-cycle logical error rate is p^alpha * exp(c0 + c1p + c2p^2) for p <= threshold (the source paper's own fitting form; c1 = c2 = 0 means a plain power law). provenance names the table or section each constant was read from. caveats is an array of source-level qualifications on the entry's constants (loose distance bounds, values a source marks as assumed, numbers that differ between sources); empty when the sources carry none. A code's id is the value compute_expectation accepts as errorCorrectionCode.

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": "list_qldpc_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
itemsYesSupported qLDPC codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / items / items / properties / architecture
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "adapterQubits": {
      +          "type": "number"
      +        },
      +        "caveats": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "codeModuleQubits": {
      +          "type": "number"
      +        },
      +        "dataQubitsPerModule": {
      +          "type": "number"
      +        },
      +        "durationsTimesteps": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "idle": {
      +              "type": "number"
      +            },
      +            "inModule": {
      +              "type": "number"
      +            },
      +            "interModule": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "idle",
      +            "inModule",
      +            "interModule"
      +          ],
      +          "type": "object"
      +        },
      +        "errorPoints": {
      +          "additionalProperties": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "basis": {
      +                  "enum": [
      +                    "fit",
      +                    "fit-extrapolated",
      +                    "assumed"
      +                  ],
      +                  "type": "string"
      +                },
      +                "p": {
      +                  "type": "number"
      +                },
      +                "rate": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "p",
      +                "rate",
      +                "basis"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "failureSpectrumFit": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "properties": {
      +                "faultProbabilityDivisor": {
      +                  "type": "number"
      +                },
      +                "series": {
      +                  "additionalProperties": {
      +                    "items": {
      +                      "additionalProperties": {},
      +                      "properties": {
      +                        "faults": {
      +                          "type": "number"
      +                        },
      +                        "gamma": {
      +                          "type": "number"
      +                        },
      +                        "lnF0": {
      +                          "type": "number"
      +                        },
      +                        "logicalGenerators": {
      +                          "type": "number"
      +                        },
      +                        "minFailingWeight": {
      +                          "type": "number"
      +                        },
      +                        "series": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "series",
      +                        "lnF0",
      +                        "gamma",
      +                        "minFailingWeight",
      +                        "logicalGenerators",
      +                        "faults"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "propertyNames": {
      +                    "type": "string"
      +                  },
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "faultProbabilityDivisor",
      +                "series"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "fittedInstructions": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "lpuQubits": {
      +          "type": "number"
      +        },
      +        "meanMeasurementsPerPauli": {
      +          "type": "number"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "provenance": {
      +          "additionalProperties": {
      +            "type": "string"
      +          },
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "publishedRange": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "source": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "timestepsPerCycle": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "source",
      +        "codeModuleQubits",
      +        "lpuQubits",
      +        "adapterQubits",
      +        "dataQubitsPerModule",
      +        "timestepsPerCycle",
      +        "durationsTimesteps",
      +        "meanMeasurementsPerPauli",
      +        "errorPoints",
      +        "failureSpectrumFit",
      +        "fittedInstructions",
      +        "publishedRange",
      +        "provenance",
      +        "caveats"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Instruction-level data from a published architecture that makes the code computable (module layout, instruction durations in physical timesteps, per-instruction logical error rates at the published p with their basis, and the published fit parameters for the instructions that have one); null when none is cataloged. Used by compute_fault_tolerant_resources and by the block accounting of compute_expectation."
      +}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "id",
      -  "label",
      -  "family",
      -  "n",
      -  "k",
      -  "d",
      -  "circuitLevelDistance",
      -  "checkAncillasPerBlock",
      -  "logicAncillasPerBlock",
      -  "roundsPerLogicalOp",
      -  "threshold",
      -  "fitCoefficients",
      -  "logicalErrorExponent",
      -  "provenance",
      -  "source",
      -  "caveats"
      -]New value: +[
      +  "id",
      +  "label",
      +  "family",
      +  "n",
      +  "k",
      +  "d",
      +  "circuitLevelDistance",
      +  "checkAncillasPerBlock",
      +  "logicAncillasPerBlock",
      +  "roundsPerLogicalOp",
      +  "threshold",
      +  "fitCoefficients",
      +  "logicalErrorExponent",
      +  "provenance",
      +  "source",
      +  "caveats",
      +  "architecture"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "items": {
      +      "description": "Supported qLDPC codes.",
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "caveats": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "checkAncillasPerBlock": {
      +            "type": "number"
      +          },
      +          "circuitLevelDistance": {
      +            "type": "number"
      +          },
      +          "d": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "family": {
      +            "type": "string"
      +          },
      +          "fitCoefficients": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "c0": {
      +                "type": "number"
      +              },
      +              "c1": {
      +                "type": "number"
      +              },
      +              "c2": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "c0",
      +              "c1",
      +              "c2"
      +            ],
      +            "type": "object"
      +          },
      +          "id": {
      +            "description": "Accepted as errorCorrectionCode by compute_expectation.",
      +            "type": "string"
      +          },
      +          "k": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "logicAncillasPerBlock": {
      +            "type": "number"
      +          },
      +          "logicalErrorExponent": {
      +            "type": "number"
      +          },
      +          "n": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "provenance": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "roundsPerLogicalOp": {
      +            "type": "number"
      +          },
      +          "source": {
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "threshold": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "label",
      +          "family",
      +          "n",
      +          "k",
      +          "d",
      +          "circuitLevelDistance",
      +          "checkAncillasPerBlock",
      +          "logicAncillasPerBlock",
      +          "roundsPerLogicalOp",
      +          "threshold",
      +          "fitCoefficients",
      +          "logicalErrorExponent",
      +          "provenance",
      +          "source",
      +          "caveats"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantial context beyond them: the logical-error-rate formula and its threshold validity condition, what c1=c2=0 implies, null semantics for `architecture`, and empty-array semantics for `caveats`. This gives the agent the interpretation rules it needs to use the values correctly.

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?

Everything is front-loaded in a single dense paragraph, and the formula, provenance, and caveats sentences each carry real information. The long field enumeration partially duplicates the output schema and would read better as a structured list, which is the main conciseness cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-parameter catalog tool with a full output schema, the description supplies exactly the missing layer: formulas, units/interpretation of constants, nullability, and provenance/caveat semantics. An agent can consume the results without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is no input meaning to add. The description's only parameter-adjacent statement is the cross-reference to compute_expectation's `errorCorrectionCode`, which is useful but belongs to a sibling's schema rather than this tool's.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Return the catalog of supported qLDPC ... error-correction codes') and enumerates the entry fields, so the agent knows exactly what comes back. It also distinguishes itself from sibling compute_expectation by naming the field linkage (id -> errorCorrectionCode).

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

Usage Guidelines4/5

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

The closing sentence establishes the practical use case: the returned `id` is the value compute_expectation accepts as `errorCorrectionCode`, which implicitly routes the agent to call this first for code discovery. It lacks an explicit 'use this instead of X' or 'when not to use' statement, so it falls short of full when/when-not guidance.

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.

Resources