Skip to main content
Glama

Repair this invalid OpenQASM 3 program conservatively, or tell me exactly why a safe repair cannot be made.

repair_openqasm3
Idempotent

Repair this invalid OpenQASM 3 program conservatively, or tell me exactly why a safe repair cannot be made.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes
payment_railNo
idempotency_keyYes
max_total_priceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context: repairs are conservative, and the tool may instead return an explanation of why no safe repair exists rather than silently rewriting the program. However, it omits that this is a paid operation requiring max_total_price and a payment_rail, which is material for invocation.

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 zero filler; the repair policy and the failure contract are both stated immediately. It is under-specified for such a complex, paid, nested-parameter tool, but the dimension measures waste rather than depth.

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 exists, so return values need no prose. But for a paid, idempotency-keyed tool with nested request objects and 0% schema description coverage, the one-line description leaves the payment/idempotency contract and all parameter meanings unaddressed.

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% across 4 parameters, and the description compensates almost nothing: it never mentions idempotency_key, max_total_price, payment_rail, or the nested request.source field. Only the const value 'conservative' for repair_policy is echoed via the word 'conservatively', which the schema already enforces.

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

Purpose2/5

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

Tautological: description restates name/title.

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 on when to use this tool versus the many adjacent siblings such as quantum_openqasm3_preflight_v1, quantum_openqasm3_repair_v1, or diagnose_quantum_workflow. The 'conservative' policy is implied as the only mode, but the agent is left to infer prerequisites and sequencing entirely.

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