Skip to main content
Glama

WAI Quantum job service

Solve a low-rank linear system by sample-and-query access

dequant_regress
Read-onlyIdempotent

x ≈ A⁺b for a low-rank, well-conditioned A (Gilyén, Lloyd and Tang 2018): the sketch, the needed inner products by the median of means, and x̃ held as a combination of sampled rows; its entries queried, length-squared draws made by rejection, and its inner products with given vectors estimated. Where the reference is made, ‖x̃ − A_k⁺b‖/‖A_k⁺b‖ and the draws' total variation are measured. The answer carries its label: each source theorem's sample count as a formula evaluated at this instance's ‖A‖_F, ‖A‖, σ_k, k, κ, ε, δ and η (exact where the full decomposition was made), its exponents and whether it states its constant, set beside the counts this run used; the error measured against the full decomposition where the matrix is small enough (at most 2^17 entries); and the work counted (entry queries, length-squared samples, random words, the small decomposition's operations). Sealed with the service's key; verify_quantum_result checks the seal and runs it again for the same bits. Refusals: J210, J211.

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": {
      "matrix": "<matrix>"
    },
    "name": "dequant_regress"
  }
}

Input Schema

NameRequiredDescriptionDefault
bNoThe right-hand side: a list of one number a row, or {"range": {"seed", "noise"}} (b = A x₀ for a Gaussian x₀, plus noise of relative norm `noise`; the default, seed 1, no noise).
kNoThe singular vectors kept (default the generated rank, else 4).
etaNoThe width of the singular-value threshold's band the label's theorems take (default 0.2).
seedNoThe kernel's seed (default 1): the same seed and request give the same bits on every host.
deltaNoThe failure probability the label's theorems are asked for (default 0.1).
drawsNoLength-squared draws from the answer (default 1000).
innerNoVectors to estimate ⟨x̃, y⟩ with: a list of vectors of the matrix's columns' length, or {"gaussian": {"count", "seed"}}.
budgetNoThe most rejection proposals the draws make (default: what the job's work bound leaves).
groupsNoThe median of means' groups (default 5).
matrixYesThe matrix: {"generate": {"rows", "cols", "rank", "condition", "noise", "seed"}} (a random rank-`rank` matrix, its singular values evenly from 1 down to 1/condition (default 2), plus Gaussian noise whose Frobenius norm is `noise` (default 0.01) of the low-rank part's, from `seed`) or {"entries": [[…], …]} (its rows). At most 2^20 entries.
entriesNoIndices of x̃ to query.
epsilonNoThe error the label's theorems are asked for (default 0.1).
per_groupNoThe samples in each group's mean (default 2000).
referenceNoHold the answer to the full decomposition where the matrix is small enough (at most 2^17 entries, a smaller side of at most 256; default true).
cols_sampledNoColumns sampled from the sampled rows (default 160).
inner_groupsNoEach inner product's row estimates: the median of means' groups (default 5).
rows_sampledNoRows sampled by their squared norms (default 160).
inner_per_groupNoEach inner product's row estimates: the samples in a group (default 500).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, closed-world), the description discloses substantial behavior: the sketch/median-of-means pipeline, the answer's label with sample-count formulas, error measurement against full decomposition, work counting, sealing with the service's key, and that verify_quantum_result re-runs the same bits. It does not mention resource limits or cost, but it is rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph with long semicolon-linked clauses. It is information-dense but not front-loaded for scanning; a reader must parse a lot of jargon to extract the core operation. It could be structured better.

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?

For a tool with 18 parameters, nested objects, and an output schema, the description covers the algorithm, the answer's contents, sealing, verification, and refusal codes. It is largely complete, though it omits explicit guidance on choosing between it and sibling tools.

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 coverage is 100%, so all 18 parameters are already documented in the schema. The description contextualizes some parameters (k, ε, δ, η, ‖A‖_F, etc.) as inputs to the label's formulas, but adds little per-parameter meaning beyond the schema.

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 opens with a precise mathematical statement — x ≈ A⁺b for a low-rank, well-conditioned A — and names the algorithm's provenance. That is a specific verb and resource. However, it never contrasts itself with the sibling dequant_lowrank, so an agent cannot tell from the description alone which to choose.

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?

The description gives the applicability condition (low-rank, well-conditioned A) but does not state when to use this over alternatives, nor does it explain the refusal codes J210/J211. There is no explicit 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