Skip to main content
Glama

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
NameRequiredDescriptionDefault
apiKeyNo
questionIdYes

Implementation Reference

  • 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

Other Tools

Related 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/an1lam/fatebook-mcp'

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