Skip to main content
Glama

Qasmguard for OpenQASM lint, simulation, routing & FTQC

q_profile_circuit

Read-onlyIdempotent

Free tier: Circuit DAG depth, gate histogram, Clifford+T counts, and NISQ survival fidelity for willow-105, sycamore-54, ibm-heron-133, or ionq-forte.

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

Input Schema

NameRequiredDescriptionDefault
qasmYesOpenQASM 2.0 or 3.0 source string.
hardwarePresetNoTarget QPU noise and capacity preset (default willow-105).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 genuinely new context: it is a free-tier call, and the results include a modeled NISQ survival fidelity for a named hardware preset. It does not say whether that fidelity is an estimate or a measured/simulated value, nor any quota limits on the free tier.

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?

A single front-loaded sentence with no filler, and the output metrics are pushed to the front. Repeating the four preset identifiers already present in the enum is slightly wasteful but not enough to hurt readability.

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?

With only two fully documented parameters, read-only annotations, and no output schema, the description carries the return-value burden and does name the four metrics returned. Missing pieces are the output shape (single object vs. sections) and whether fidelity is analytic or sampled, which for a profiling tool is a notable but not fatal gap.

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%, with the qasm format and the hardwarePreset enum default already documented in the schema. The description only re-lists the preset values, adding no semantic detail such as what 'capacity' constraint a preset imposes or how fidelity scales with the choice.

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 enumerates the exact artifacts produced (DAG depth, gate histogram, Clifford+T counts, NISQ survival fidelity), which makes the tool's function as a circuit profiler unambiguous and separable from q_simulate or q_transpile_route. It lacks an explicit verb ('profiles/analyzes'), relying on the name plus the metric list, so it stops just short of 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?

The 'Free tier:' prefix hints that a paid tier exists but never states when to choose this tool over q_simulate, q_ftqc_estimate, or q_transpile_route, nor any prerequisites or exclusions. An agent gets no routing guidance beyond guessing from the metric names.

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.