Skip to main content
Glama

like_post

Enable users to like posts on Bluesky Social by specifying the post URI and CID. Simplify engagement and interaction with content on the platform.

Instructions

Like a post.

Args: ctx: MCP context uri: URI of the post to like cid: CID of the post to like Returns: Status of the like operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cidYes
uriYes

Implementation Reference

  • The core handler function for the 'like_post' MCP tool. Decorated with @mcp.tool() for automatic registration. Authenticates via get_authenticated_client, calls bluesky_client.like(uri, cid), and returns success details or error.
    @mcp.tool() def like_post( ctx: Context, uri: str, cid: str, ) -> Dict: """Like a post. Args: ctx: MCP context uri: URI of the post to like cid: CID of the post to like Returns: Status of the like operation """ try: bluesky_client = get_authenticated_client(ctx) like_response = bluesky_client.like(uri, cid) return { "status": "success", "message": "Post liked successfully", "like_uri": like_response.uri, "like_cid": like_response.cid, } except Exception as e: error_msg = f"Failed to like post: {str(e)}" return {"status": "error", "message": error_msg}
  • server.py:1076-1085 (registration)
    The 'like_post' tool is listed in the documentation resource get_bluesky_tools_info under 'posts' category, indicating its availability.
    "posts": [ "get_timeline_posts", "get_feed_posts", "get_list_posts", "get_user_posts", "get_liked_posts", "create_post", "like_post", "get_post_thread", ],
  • Test usage of the 'like_post' tool, confirming its implementation and parameters (uri, cid).
    result = await client.call_tool("like_post", like_params) like_result = json.loads(result.content[0].text) assert like_result.get("status") == "success"

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