Skip to main content
Glama
mikemc
by mikemc

twist_threads_unmute

Restores notifications for a muted conversation thread in Twist workspaces by specifying the thread ID.

Instructions

Unmutes a thread.

Args: id: The id of the thread

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The main handler function that implements the tool logic: takes thread ID, constructs params, calls twist_request to the 'threads/unmute' API endpoint with POST method, logs actions, and returns the response or error.
    def twist_threads_unmute(
        ctx: Context,
        id: int
    ) -> Union[str, Dict[str, Any]]:
        """Unmutes a thread.
    
        Args:
            id: The id of the thread
        """
        all_params = locals()
        token = ctx.request_context.lifespan_context.twist_token
        params = {k: v for k, v in all_params.items() if k != 'ctx' and v is not None}
    
        try:
            logger.info(f"Unmuting thread with ID: {id}")
            thread_data = twist_request("threads/unmute", params=params, token=token, method="POST")
            logger.info(f"Successfully unmuted thread with ID: {id}")
            return thread_data
        except Exception as error:
            logger.error(f"Error unmuting thread: {error}")
            return f"Error unmuting thread: {str(error)}"
  • main.py:42-48 (registration)
    Dynamic registration of all twist_* functions from src.threads (including twist_threads_unmute) 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