Skip to main content
Glama

Qasmguard for OpenQASM lint, simulation, routing & FTQC

q_simulate

Read-onlyIdempotent

Free tier: Exact dense statevector (<=12Q) and bit-packed Clifford stabilizer (<=256Q) simulator with seeded shots and q0_lsb Pauli expectations.

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": {
      "qasm": "<qasm>"
    },
    "name": "q_simulate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoSimulation backend: auto (<=12Q statevector or <=256Q Clifford), statevector, or stabilizer.
qasmYesOpenQASM 2.0 or 3.0 source string.
seedNoDeterministic Mulberry32 PRNG seed (default 42).
shotsNoShot samples in [0, 100000] (default 1024).
observablesNoUp to 64 Pauli observable strings over {I,X,Y,Z} in q0_lsb order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavior context beyond that: the two simulation regimes and their hard size ceilings, plus deterministic seeding. It omits failure behavior, such as what happens when a circuit exceeds the qubit limits or contains non-Clifford gates in stabilizer mode, and says nothing about cost or runtime.

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

Conciseness5/5

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

A single front-loaded sentence that packs the tier, the two backends, their limits, and the two output modes with no filler. The parenthetical limits sit right next to the backend they constrain, so the density stays readable.

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 is the only place an agent could learn what comes back, and it never states the result shape (counts vs. statevector vs. expectation values) or how shots interact with observables. Limits, seeding, and backends are well covered, but the return value and error cases are left unspecified for a five-parameter tool.

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 including mode, seed default 42, shots range, and the 64-observable cap is already documented in structured data. The description restates seeded shots and q0_lsb Pauli expectations without adding format, syntax, or interaction details beyond the schema. Baseline 3 applies when the schema carries the meaning.

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?

Names a specific verb+resource (simulator) and pins down both backends with their qubit ceilings (dense statevector <=12Q, bit-packed Clifford stabilizer <=256Q) plus seeded shots and q0_lsb Pauli expectations. An agent immediately knows this executes a QASM program rather than linting, transpiling, or profiling it. It stops short of naming any sibling for contrast, which keeps it from a 5.

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 and no statement of when not to use it. The mode enum field explains backend selection, but that is schema content rather than description guidance, and nothing tells the agent how this differs from q_profile_circuit or q_equivalence_check when it just wants a result for a circuit.

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.