Skip to main content
Glama

get_notifications

Retrieve a list of notifications from Backlog by specifying ID range, count, sorting, and read status to manage project updates efficiently.

Instructions

Returns list of notifications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alreadyReadNoWhether to include already read notifications
countNoNumber of notifications to retrieve
maxIdNoMaximum notification ID
minIdNoMinimum notification ID
orderNoSort order
resourceAlreadyReadNoWhether to include notifications for already read resources

Implementation Reference

  • Complete tool definition for 'get_notifications', including the handler function that invokes backlog.getNotifications with input parameters.
    export const getNotificationsTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getNotificationsSchema>, (typeof NotificationSchema)['shape'] > => { return { name: 'get_notifications', description: t( 'TOOL_GET_NOTIFICATIONS_DESCRIPTION', 'Returns list of notifications' ), schema: z.object(getNotificationsSchema(t)), outputSchema: NotificationSchema, handler: async ({ minId, maxId, count, order }) => backlog.getNotifications({ minId, maxId, count, order, }), }; };
  • Input schema for the get_notifications tool, defining optional parameters minId, maxId, count, and order using Zod.
    const getNotificationsSchema = buildToolSchema((t) => ({ minId: z .number() .optional() .describe(t('TOOL_GET_NOTIFICATIONS_MIN_ID', 'Minimum notification ID')), maxId: z .number() .optional() .describe(t('TOOL_GET_NOTIFICATIONS_MAX_ID', 'Maximum notification ID')), count: z .number() .optional() .describe( t('TOOL_GET_NOTIFICATIONS_COUNT', 'Number of notifications to retrieve') ), order: z .enum(['asc', 'desc']) .optional() .describe(t('TOOL_GET_NOTIFICATIONS_ORDER', 'Sort order')), }));
  • Registration of the get_notifications tool (via getNotificationsTool) into the 'notifications' toolset group in the allTools export.
    { name: 'notifications', description: 'Tools for managing user notifications.', enabled: false, tools: [ getNotificationsTool(backlog, helper), getNotificationsCountTool(backlog, helper), resetUnreadNotificationCountTool(backlog, helper), markNotificationAsReadTool(backlog, helper), ], },

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

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