Skip to main content
Glama

count_notifications

Track unread notifications in Backlog by fetching counts using boolean filters for already read notifications and resources.

Instructions

Returns count of notifications

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alreadyReadYesWhether to include already read notifications
resourceAlreadyReadYesWhether to include notifications for already read resources

Implementation Reference

  • The handler function for the 'count_notifications' tool, which calls the Backlog SDK's getNotificationsCount method with the provided parameters.
    handler: async (params) => backlog.getNotificationsCount(params),
  • Input schema definition for the count_notifications tool, specifying boolean parameters for including already read notifications and notifications for already read resources.
    const getNotificationsCountSchema = buildToolSchema((t) => ({ alreadyRead: z .boolean() .describe( t( 'TOOL_GET_NOTIFICATIONS_COUNT_ALREADY_READ', 'Whether to include already read notifications' ) ), resourceAlreadyRead: z .boolean() .describe( t( 'TOOL_GET_NOTIFICATIONS_COUNT_RESOURCE_ALREADY_READ', 'Whether to include notifications for already read resources' ) ), }));
  • Tool definition object for 'count_notifications', including name, description, input/output schemas, and handler. Exported via getNotificationsCountTool factory.
    return { name: 'count_notifications', description: t( 'TOOL_COUNT_NOTIFICATIONS_DESCRIPTION', 'Returns count of notifications' ), schema: z.object(getNotificationsCountSchema(t)), outputSchema: NotificationCountSchema, handler: async (params) => backlog.getNotificationsCount(params), }; };
  • Instantiates the count_notifications tool (via getNotificationsCountTool factory) and adds it to the 'notifications' toolset in the main tools export.
    getNotificationsCountTool(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