Skip to main content
Glama

Backlog MCP Server

markNotificationAsRead.ts1.2 kB
import { z } from 'zod'; import { Backlog } from 'backlog-js'; import { buildToolSchema, ToolDefinition } from '../types/tool.js'; import { TranslationHelper } from '../createTranslationHelper.js'; const markNotificationAsReadSchema = buildToolSchema((t) => ({ id: z .number() .describe( t('TOOL_MARK_NOTIFICATION_AS_READ_ID', 'Notification ID to mark as read') ), })); export const MarkNotificationAsReadResultSchema = z.object({ success: z.boolean(), message: z.string(), }); export const markNotificationAsReadTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof markNotificationAsReadSchema>, (typeof MarkNotificationAsReadResultSchema)['shape'] > => { return { name: 'mark_notification_as_read', description: t( 'TOOL_MARK_NOTIFICATION_AS_READ_DESCRIPTION', 'Mark a notification as read' ), schema: z.object(markNotificationAsReadSchema(t)), outputSchema: MarkNotificationAsReadResultSchema, handler: async ({ id }) => { await backlog.markAsReadNotification(id); return { success: true, message: `Notification ${id} marked as read`, }; }, }; };

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