delete_question
Remove a specific question from Fatebook using its unique questionId. This tool helps manage predictions by deleting outdated or incorrect forecast entries.
Instructions
Delete a Fatebook question
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | ||
| questionId | Yes |
Implementation Reference
- src/fatebook_mcp/__main__.py:311-335 (handler)The core handler function for the 'delete_question' MCP tool. Decorated with @mcp.tool() for automatic registration. Handles API key validation, makes DELETE request to Fatebook's deleteQuestion endpoint, and returns success boolean.@mcp.tool() async def delete_question(questionId: str, apiKey: str = "") -> bool: """Delete a Fatebook question""" api_key = apiKey or os.getenv("FATEBOOK_API_KEY") if not api_key: raise ValueError( "API key is required (provide as parameter or set FATEBOOK_API_KEY environment variable)" ) params = {"questionId": questionId, "apiKey": api_key} try: async with httpx.AsyncClient() as client: response = await client.delete( "https://fatebook.io/api/v0/deleteQuestion", params=params ) response.raise_for_status() return True except httpx.HTTPError: raise except Exception: raise