Skip to main content
Glama

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
NameRequiredDescriptionDefault
questionIdYes
apiKeyNo
titleNo
resolveByNo
notesNo

Implementation Reference

  • 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

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