edit_question
Modify existing prediction questions on Fatebook by updating titles, resolution dates, or notes to keep forecasts accurate and organized.
Instructions
Edit a Fatebook question
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| questionId | Yes | ||
| apiKey | No | ||
| title | No | ||
| resolveBy | No | ||
| notes | No |
Implementation Reference
- src/fatebook_mcp/__main__.py:337-373 (handler)Handler function for the 'edit_question' MCP tool. Decorated with @mcp.tool() for automatic registration. Makes a PATCH request to the Fatebook API to update question title, resolveBy date, or notes.@mcp.tool() async def edit_question( questionId: str, apiKey: str = "", title: str = "", resolveBy: str = "", notes: str = "", ) -> bool: """Edit 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)" ) data = {"questionId": questionId, "apiKey": api_key} # Add optional parameters only if provided if title: data["title"] = title if resolveBy: data["resolveBy"] = resolveBy if notes: data["notes"] = notes try: async with httpx.AsyncClient() as client: response = await client.patch("https://fatebook.io/api/v0/editQuestion", json=data) response.raise_for_status() return True except httpx.HTTPError: raise except Exception: raise