Skip to main content
Glama

get_reposted_by

Retrieve users who reposted a specific Bluesky post to analyze engagement and identify content amplifiers.

Instructions

Get users who reposted a post.

Args:
    ctx: MCP context
    uri: URI of the post to get reposts for
    cid: Optional CID of the post (not strictly required)
    limit: Maximum number of results to return (1-100)
    cursor: Optional pagination cursor

Returns:
    List of users who reposted the post

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYes
cidNo
limitNo
cursorNo

Implementation Reference

  • The main handler function for the 'get_reposted_by' tool, decorated with @mcp.tool(). It authenticates the Bluesky client, processes parameters, calls the underlying bluesky_client.get_reposted_by method, and returns the results or error.
    @mcp.tool()
    def get_reposted_by(
        ctx: Context,
        uri: str,
        cid: Optional[str] = None,
        limit: Union[int, str] = 50,
        cursor: Optional[str] = None,
    ) -> Dict:
        """Get users who reposted a post.
    
        Args:
            ctx: MCP context
            uri: URI of the post to get reposts for
            cid: Optional CID of the post (not strictly required)
            limit: Maximum number of results to return (1-100)
            cursor: Optional pagination cursor
    
        Returns:
            List of users who reposted the post
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
    
            # Convert limit to int if it's a string
            if isinstance(limit, str):
                limit = int(limit)
            limit = max(1, min(100, limit))
    
            # Call get_reposted_by with positional arguments as per the client signature
            reposts_response = bluesky_client.get_reposted_by(uri, cid, cursor, limit)
            reposts_data = reposts_response.dict()
    
            return {"status": "success", "reposts": reposts_data}
        except Exception as e:
            error_msg = f"Failed to get reposts: {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