Skip to main content
Glama

twist_inbox_unarchive

Restore archived threads in Twist by unarchiving them using their unique thread ID. Manage your inbox efficiently with this tool.

Instructions

Unarchives a thread.

Args: id: The ID of the thread to unarchive

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The handler function that unarchives a specific thread by its ID using the Twist API.
    def twist_inbox_unarchive( ctx: Context, id: int ) -> str: """Unarchives a thread. Args: id: The ID of the thread to unarchive """ token = ctx.request_context.lifespan_context.twist_token params = {"id": id} try: logger.info(f"Unarchiving thread with ID: {id}") result = twist_request("inbox/unarchive", params=params, token=token, method="POST") logger.info(f"Successfully unarchived thread with ID: {id}") return f"Successfully unarchived thread with ID: {id}" except Exception as error: logger.error(f"Error unarchiving thread: {error}") return f"Error unarchiving thread: {str(error)}"
  • main.py:42-48 (registration)
    Loop that automatically registers all functions starting with 'twist_' from the inbox module (including twist_inbox_unarchive) as MCP tools using FastMCP's tool decorator.
    # Register all tools from tool modules for module in [src.inbox, src.threads]: for name, func in inspect.getmembers(module, inspect.isfunction): if name.startswith('twist_') and func.__module__ == module.__name__: logger.info(f"Registering tool: {name}") mcp.tool()(func)

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/mikemc/twist-mcp-server'

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