Skip to main content
Glama
aYon1997

Health Reminder MCP Server

by aYon1997

send_immediate_reminder

Send instant health reminder notifications to prompt users to take breaks and move around, with customizable messages, titles, and sound options.

Instructions

立即发送一次健康提醒通知(不影响定时器)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNo提醒消息内容该起身活动一下了!
titleNo通知标题健康提醒
soundNo是否播放提示音

Implementation Reference

  • The handler logic for the 'send_immediate_reminder' tool. It constructs a config from input arguments (with defaults), calls the sendNotification helper, and returns a success response.
    case "send_immediate_reminder": { const config = { message: (args?.message as string) || "该起身活动一下了!", title: (args?.title as string) || "健康提醒", sound: args?.sound !== undefined ? (args.sound as boolean) : true, interval: 0, // 不使用 }; sendNotification(config); return { content: [ { type: "text", text: JSON.stringify({ success: true, message: "已发送即时提醒通知", }, null, 2), }, ], }; }
  • The tool registration object including name, description, and input schema for validation.
    { name: "send_immediate_reminder", description: "立即发送一次健康提醒通知(不影响定时器)", inputSchema: { type: "object", properties: { message: { type: "string", description: "提醒消息内容", default: "该起身活动一下了!", }, title: { type: "string", description: "通知标题", default: "健康提醒", }, sound: { type: "boolean", description: "是否播放提示音", default: true, }, }, }, }, ];
  • Core helper function that sends the desktop notification using node-notifier and logs the event.
    function sendNotification(config: ReminderConfig) { notifier.notify({ title: config.title, message: config.message, sound: config.sound, wait: false, timeout: 10, }); console.log(`[${new Date().toLocaleString()}] 已发送提醒: ${config.message}`); }
  • Client-side convenience wrapper to invoke the send_immediate_reminder tool via the MCP client.
    async function sendImmediateReminder() { console.log("\n正在发送即时提醒..."); const result = await callTool("send_immediate_reminder"); if (result && result.success) { console.log("✓", result.message); } }

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