Skip to main content
Glama
barvhaim

Qiskit MCP Server

by barvhaim

create_quantum_circuit

Build a quantum circuit with specified qubits and classical bits. Optionally name the circuit; if not, a unique name is auto-generated. Returns circuit details and name.

Instructions

Create a new quantum circuit with auto-generated unique name.

Args: num_qubits: Number of quantum bits (must be an integer) num_classical_bits: Number of classical bits (must be an integer, defaults to num_qubits if not provided) name: Optional custom name for the circuit (auto-generated if not provided)

Returns: Success message with circuit details and generated name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
num_qubitsYes
num_classical_bitsNo
nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries the burden. It explains return values and default behaviors for parameters. However, it does not disclose side effects (e.g., storage, whether circuit is saved) or permissions needed.

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?

The description is concise, with a clear summary line, Args section, and Returns section. Every sentence provides necessary information without redundancy.

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?

Given the presence of an output schema, the return explanation is adequate. However, the description lacks usage context relative to sibling tools and does not mention if the circuit is stored or how it integrates with other tools. Still, it is complete for a simple creation tool.

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

Parameters5/5

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

Schema description coverage is 0%, but description compensates fully. It explains all three parameters, including the default behavior for num_classical_bits and auto-generation for name. This adds significant value beyond the schema.

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 clearly states the tool creates a new quantum circuit with auto-generated name. It distinguishes from sibling 'create_variational_circuit' implicitly by not mentioning variational parameters, but could be more explicit.

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?

No guidance on when to use this tool vs siblings like create_variational_circuit or add_gates. The description does not mention prerequisites or use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barvhaim/qiskit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server