Skip to main content
Glama
aYon1997

Health Reminder MCP Server

by aYon1997

start_reminder

Schedule periodic system notifications to remind users to take breaks and move around, with customizable intervals, messages, and notification settings.

Instructions

启动健康提醒定时器,每隔指定时间弹出系统通知

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intervalNo提醒间隔时间(分钟),默认 30 分钟
messageNo提醒消息内容该起身活动一下了!久坐对健康不利,建议站起来走动走动。
titleNo通知标题健康提醒
soundNo是否播放提示音

Implementation Reference

  • Core handler function that starts the reminder: clears existing timer, sends immediate notification using node-notifier, sets up recurring setInterval timer.
    function startReminder(config: ReminderConfig) { // 清除现有定时器 if (reminderTimer) { clearInterval(reminderTimer); } currentConfig = { ...config }; const intervalMs = config.interval * 60 * 1000; // 立即发送一次通知 sendNotification(config); // 设置定时器 reminderTimer = setInterval(() => { sendNotification(config); }, intervalMs); console.log(`✓ 健康提醒已启动 - 每 ${config.interval} 分钟提醒一次`); }
  • JSON Schema for input validation of start_reminder tool parameters: interval, message, title, sound.
    inputSchema: { type: "object", properties: { interval: { type: "number", description: "提醒间隔时间(分钟),默认 30 分钟", default: 30, }, message: { type: "string", description: "提醒消息内容", default: "该起身活动一下了!久坐对健康不利,建议站起来走动走动。", }, title: { type: "string", description: "通知标题", default: "健康提醒", }, sound: { type: "boolean", description: "是否播放提示音", default: true, }, }, },
  • Tool registration object defining name, description, and schema, included in the tools list returned by listTools.
    { name: "start_reminder", description: "启动健康提醒定时器,每隔指定时间弹出系统通知", inputSchema: { type: "object", properties: { interval: { type: "number", description: "提醒间隔时间(分钟),默认 30 分钟", default: 30, }, message: { type: "string", description: "提醒消息内容", default: "该起身活动一下了!久坐对健康不利,建议站起来走动走动。", }, title: { type: "string", description: "通知标题", default: "健康提醒", }, sound: { type: "boolean", description: "是否播放提示音", default: true, }, }, }, },
  • MCP CallToolRequestSchema handler case for start_reminder: constructs config from arguments, invokes startReminder, formats MCP response.
    case "start_reminder": { const config: ReminderConfig = { interval: (args?.interval as number) || defaultConfig.interval, message: (args?.message as string) || defaultConfig.message, title: (args?.title as string) || defaultConfig.title, sound: args?.sound !== undefined ? (args.sound as boolean) : defaultConfig.sound, }; startReminder(config); return { content: [ { type: "text", text: JSON.stringify({ success: true, message: `健康提醒已启动!每 ${config.interval} 分钟将收到提醒通知。`, config: config, }, null, 2), }, ], }; }
  • TypeScript interface defining the shape of ReminderConfig used in handler signatures.
    interface ReminderConfig { interval: number; // 提醒间隔(分钟) message: string; // 提醒消息 title: string; // 通知标题 sound: boolean; // 是否播放声音 }

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/aYon1997/health-reminder-mcp'

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