Skip to main content
Glama

Backlog MCP Server

getNotifications.ts1.44 kB
import { z } from 'zod'; import { Backlog } from 'backlog-js'; import { buildToolSchema, ToolDefinition } from '../types/tool.js'; import { TranslationHelper } from '../createTranslationHelper.js'; import { NotificationSchema } from '../types/zod/backlogOutputDefinition.js'; 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')), })); 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, }), }; };

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