Skip to main content
Glama

mute_user

Block unwanted content by muting specific users on Bluesky Social. This tool allows you to hide posts from selected accounts to customize your feed experience.

Instructions

Mute a user.

Args:
    ctx: MCP context
    actor: Handle or DID of the user to mute

Returns:
    Status of the mute operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorYes

Implementation Reference

  • The main handler function for the 'mute_user' tool. It is decorated with @mcp.tool() for registration in the MCP framework. The function takes a context and actor (handle or DID), authenticates a Bluesky client, calls the client's mute method, and returns success or error status.
    @mcp.tool()
    def mute_user(
        ctx: Context,
        actor: str,
    ) -> Dict:
        """Mute a user.
    
        Args:
            ctx: MCP context
            actor: Handle or DID of the user to mute
    
        Returns:
            Status of the mute operation
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
    
            # The mute method returns a boolean
            success = bluesky_client.mute(actor)
    
            if success:
                return {
                    "status": "success",
                    "message": f"Muted user {actor}",
                }
            else:
                return {
                    "status": "error",
                    "message": "Failed to mute user",
                }
        except Exception as e:
            error_msg = f"Failed to mute user: {str(e)}"
            return {"status": "error", "message": error_msg}

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/gwbischof/bluesky-social-mcp'

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