Skip to main content
Glama
liveblocks
by liveblocks

get-inbox-notifications

Fetch recent inbox notifications from Liveblocks, including unread messages, for a specified user ID with customizable query parameters.

Instructions

Get recent Liveblocks inbox notifications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNo
startingAfterNo
userIdYes

Implementation Reference

  • src/server.ts:658-679 (registration)
    Registration of the 'get-inbox-notifications' MCP tool, including inline Zod input schema (userId required, optional query.unread, startingAfter, limit) and handler function that calls the Liveblocks getInboxNotifications API wrapped by callLiveblocksApi utility.
    server.tool( "get-inbox-notifications", `Get recent Liveblocks inbox notifications`, { userId: z.string(), query: z .object({ unread: z.boolean(), }) .optional(), startingAfter: z.string().optional(), limit: z.number().optional(), }, async ({ userId, query, startingAfter, limit }, extra) => { return await callLiveblocksApi( getLiveblocks().getInboxNotifications( { userId, query, startingAfter, limit }, { signal: extra.signal } ) ); } );
  • The handler function implementing the tool logic: proxies parameters to Liveblocks' getInboxNotifications method via getLiveblocks() client and callLiveblocksApi utility, respecting the request signal.
    async ({ userId, query, startingAfter, limit }, extra) => { return await callLiveblocksApi( getLiveblocks().getInboxNotifications( { userId, query, startingAfter, limit }, { signal: extra.signal } ) ); }
  • Zod schema for tool inputs: requires userId (string), optional query object with unread (boolean), startingAfter (string), and limit (number).
    { userId: z.string(), query: z .object({ unread: z.boolean(), }) .optional(), startingAfter: z.string().optional(), limit: z.number().optional(), },

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/liveblocks/liveblocks-mcp-server'

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