Skip to main content
Glama

bluesky_get_liked_posts

Retrieve a list of posts liked by a user on BlueSky, with options to set result limits and pagination for efficient data collection.

Instructions

Get a list of posts liked by the user

Input Schema

NameRequiredDescriptionDefault
cursorNoPagination cursor for next page of results
limitNoMaximum number of liked posts to return (default 50, max 100)

Input Schema (JSON Schema)

{ "properties": { "cursor": { "description": "Pagination cursor for next page of results", "type": "string" }, "limit": { "default": 50, "description": "Maximum number of liked posts to return (default 50, max 100)", "type": "integer" } }, "type": "object" }

Implementation Reference

  • Registration of the 'bluesky_get_liked_posts' tool in the list_tools function, including its description and input schema.
    types.Tool( name="bluesky_get_liked_posts", description="Get a list of posts liked by the user", inputSchema={ "type": "object", "properties": { "limit": { "type": "integer", "description": "Maximum number of liked posts to return (default 50, max 100)", "default": 50, }, "cursor": { "type": "string", "description": "Pagination cursor for next page of results", }, }, }, ),
  • Input schema definition for the 'bluesky_get_liked_posts' tool, defining optional limit and cursor parameters.
    inputSchema={ "type": "object", "properties": { "limit": { "type": "integer", "description": "Maximum number of liked posts to return (default 50, max 100)", "default": 50, }, "cursor": { "type": "string", "description": "Pagination cursor for next page of results", }, }, },
  • Handler implementation within handle_call_tool that executes the tool logic by calling the Bluesky get_likes API endpoint for the authenticated user.
    elif name == "bluesky_get_liked_posts": limit = arguments.get("limit", 50) cursor = arguments.get("cursor") response = await asyncio.to_thread( bluesky.client.app.bsky.feed.get_likes, {'uri': IDENTIFIER, 'limit': limit, 'cursor': cursor} )

Other Tools

Related Tools

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/berlinbra/BlueSky-MCP'

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