qiskit_v1_api_reference_toc
Fetch the Qiskit v1 API reference table of contents in Markdown format to navigate quantum computing documentation efficiently.
Instructions
Fetch the Qiskit v1 API reference table of contents (https://docs.quantum.ibm.com/api/qiskit/1.4).
Returns:
str: The table of contents in Markdown format.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- jij_mcp/mcp_setting.py:136-148 (handler)The handler function for the 'qiskit_v1_api_reference_toc' tool. It fetches the table of contents from the Qiskit v1 API documentation URL using the fetch_as_markdown helper and returns it in Markdown format, handling errors appropriately.@mcp.tool() async def qiskit_v1_api_reference_toc() -> str: """ Fetch the Qiskit v1 API reference table of contents (https://docs.quantum.ibm.com/api/qiskit/1.4). Returns: str: The table of contents in Markdown format. """ url = "https://docs.quantum.ibm.com/api/qiskit/1.4" response: FetchResponse = await fetch_as_markdown(url) if response.isError: return response.errorMessage if response.errorMessage else "Error fetching the content" return url + "\n" + response.content[0]["text"]
- jij_mcp/mcp_setting.py:136-136 (registration)The @mcp.tool() decorator registers the qiskit_v1_api_reference_toc function as an MCP tool.@mcp.tool()