Skip to main content
Glama
aYon1997

Health Reminder MCP Server

by aYon1997

send_immediate_reminder

Send an immediate health reminder notification to prompt users to take breaks and move around, with customizable message, title, and sound settings.

Instructions

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

Input Schema

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

Implementation Reference

  • The switch case handler for the 'send_immediate_reminder' tool that constructs a notification config from input arguments, calls the sendNotification helper, and returns a formatted 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), }, ], }; }
  • Input schema defining the parameters for the send_immediate_reminder tool: optional message, title (strings), and sound (boolean).
    inputSchema: { type: "object", properties: { message: { type: "string", description: "提醒消息内容", default: "该起身活动一下了!", }, title: { type: "string", description: "通知标题", default: "健康提醒", }, sound: { type: "boolean", description: "是否播放提示音", default: true, }, }, },
  • Registration of the send_immediate_reminder tool in the tools array, including name, description, and input schema, used by ListToolsRequestHandler.
    { 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 system notification using node-notifier based on the config and logs the event. Directly called by the tool handler.
    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 that calls the send_immediate_reminder MCP tool and handles the response display.
    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