Skip to main content
Glama

twist_threads_unstar

Remove a thread from your starred items in Twist to clean up your workspace and focus on current priorities.

Instructions

Unstars a thread.

Args: id: The id of the thread

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • The main handler function for the 'twist_threads_unstar' tool. It takes a thread ID, constructs parameters, and calls the Twist API endpoint 'threads/unstar' via twist_request to unstar the thread. Handles logging and errors appropriately.
    def twist_threads_unstar( ctx: Context, id: int ) -> str: """Unstars 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"Unstarring thread with ID: {id}") twist_request("threads/unstar", params=params, token=token, method="POST") logger.info(f"Successfully unstarred thread with ID: {id}") return f"Successfully unstarred thread with ID: {id}" except Exception as error: logger.error(f"Error unstarring thread: {error}") return f"Error unstarring thread: {str(error)}"

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