Skip to main content
Glama
aYon1997

Health Reminder MCP Server

by aYon1997

stop_reminder

Stop health reminder notifications to pause break alerts and movement prompts from the reminder system.

Instructions

停止健康提醒定时器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that stops the active reminder timer by clearing the NodeJS interval and logging the action. Returns true if stopped, false if no timer was active.
    function stopReminder() { if (reminderTimer) { clearInterval(reminderTimer); reminderTimer = null; console.log("✓ 健康提醒已停止"); return true; } return false; }
  • The tool definition in the tools array, providing the schema with no input parameters required.
    { name: "stop_reminder", description: "停止健康提醒定时器", inputSchema: { type: "object", properties: {}, }, },
  • The dispatch logic in the CallToolRequestSchema handler that invokes the stopReminder function and returns a formatted JSON response indicating success or if no timer was active.
    case "stop_reminder": { const stopped = stopReminder(); return { content: [ { type: "text", text: JSON.stringify({ success: stopped, message: stopped ? "健康提醒已停止" : "当前没有运行中的提醒", }, null, 2), }, ], }; }
  • Registers the ListToolsRequestSchema handler, which returns the list of available tools including stop_reminder.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

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