Skip to main content
Glama

Qasmguard for OpenQASM lint, simulation, routing & FTQC

q_lint_qasm

Read-onlyIdempotent

Free tier: OpenQASM 2.0/3.0 lexer, AST parser, and 15 static preflight checks (bounds, arity, q0_lsb endianness). Example: {"qasm":"OPENQASM 2.0;\nqreg q[2];\nh q[0];\ncx q[0],q[1];\n"}.

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

Input Schema

NameRequiredDescriptionDefault
qasmYesOpenQASM 2.0 or 3.0 source string (<= 262,144 bytes).
strictNoWhen true, warnings mark valid=false (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 naming the check families (bounds, arity, endianness) and the strict-mode effect that warnings flip valid to false, but with no output schema it never describes the result shape (error/warning lists, line numbers), which is a meaningful omission.

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?

Two compact sentences with the capability statement front-loaded and a single illustrative example appended. The 'Free tier:' lead is slightly odd but does signal a quota, and no sentence is padding.

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?

For a read-only linter with no output schema, the description should convey what comes back (diagnostics, locations, pass/fail). It hints at a valid flag via strict mode but never states the response structure, so an agent knows what the tool does but not what it receives.

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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by supplying a concrete runnable qasm example and by surfacing q0_lsb endianness, which tells the agent what convention its input will be judged against. The strict parameter is still only explained in the schema, not the description.

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 concrete resource (OpenQASM 2.0/3.0 source) and a concrete operation set (lex, parse, 15 static preflight checks), which implicitly separates it from siblings like q_simulate or q_transpile_route. It stops short of explicitly naming a sibling it is not, so it lands at 4 rather than 5.

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 word 'preflight' implies this is run before simulation/transpilation, and 'static' implies no execution, but neither is spelled out. There is no explicit when-to-use or when-not-to-use guidance and no named alternative, leaving the agent to infer the workflow position.

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.