Skip to main content
Glama

Qasmguard for OpenQASM lint, simulation, routing & FTQC

q_transpile_route

Read-onlyIdempotent

Metered ($0.010): Deterministic bidirectional SABRE SWAP router onto willow-105, sycamore-54, ibm-heron-133, ionq-forte, line, ring, or customEdges.

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

Input Schema

NameRequiredDescriptionDefault
qasmYesOpenQASM 2.0/3.0 circuit to route.
presetNoTarget coupling map preset (default willow-105).
customEdgesNoOptional custom undirected coupling edges [[u, v], ...].
maxIterationsNoBidirectional SABRE pass count >= 1 (default 3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description's job is additive — and it delivers two facts annotations cannot: the call is metered at $0.010 and the routing is deterministic, both decision-relevant. It stops short of saying what the call returns or how unroutable circuits are reported, which keeps it below a 5.

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?

One sentence, zero waste, with the cost signal front-loaded before the functional clause. Every element — metering, determinism, algorithm, target set — is load-bearing.

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 four-parameter quantum routing tool, the description covers cost, algorithm, and target selection adequately, and annotations carry the safety profile. The remaining gap is the absence of an output schema combined with no statement of what is returned (routed QASM, SWAP count, mapping) or failure behavior.

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?

With 100% schema description coverage, the baseline is 3. The description usefully frames customEdges as an alternative to a preset topology and echoes the preset list, but it adds no format or interaction detail (e.g., whether customEdges overrides preset) beyond what the schema already states.

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?

States a specific verb and transform ('bidirectional SABRE SWAP router') applied to a named resource ('OpenQASM circuit' per schema), plus the concrete target topologies. This is unmistakably a routing/transpilation step and cannot be confused with q_simulate, q_lint_qasm, q_profile_circuit, or q_ftqc_estimate.

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?

Usage is only implied by the verb 'route' — an agent can infer it is for mapping a circuit onto a hardware coupling map, but there is no explicit when-to-use statement, no mention of prerequisites (e.g., circuit must be pre-optimized), and no exclusions or alternatives named.

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.