Skip to main content
Glama

WAI Quantum job service

Improve a quantum program

improve_qasm
Read-only

The program with its smells fixed in its own text (all of them, and each alone), each candidate with its measures and the equivalence check's verdict against the program. A candidate the check finds different is never returned.

Input Schema

NameRequiredDescriptionDefault
qasmYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

The readOnlyHint annotation already covers the safety profile, and the description adds a useful guarantee that candidates differing under the equivalence check are never returned. However, it does not clarify what qualifies as a smell, whether the original program is modified, or any performance or permission constraints.

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 short, but the first sentence is grammatically dense and front-loads the return contents instead of the tool's action. The second sentence is clear and earns its place by stating the equivalence-filtering guarantee.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema already exists, so the description's heavy focus on return values is largely redundant. Meanwhile it omits the two things an agent most needs here: the input format and when to select this tool over repair_qasm or other siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the single qasm parameter is undocumented in both schema and description. The phrase 'the program' loosely implies the input, but it does not explain that the parameter expects OpenQASM text or add any constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description implies the outcome—a program with code smells fixed—but never states the action in a direct verb+resource form. It relies heavily on the tool name and title, and it does not distinguish itself from siblings such as repair_qasm or critique_qasm.

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 guidance about when to use this tool, when not to use it, or which sibling to choose instead. The only related signal is the equivalence-check detail, which describes output behavior rather than tool selection.

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