Skip to main content
Glama
aYon1997

Health Reminder MCP Server

by aYon1997

stop_reminder

Stop the periodic health reminder notifications from the Health Reminder MCP Server to pause break prompts.

Instructions

停止健康提醒定时器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'stop_reminder' tool. It clears the active reminder timer interval if it exists, logs a stop message, and returns true if stopped or false otherwise.
    function stopReminder() { if (reminderTimer) { clearInterval(reminderTimer); reminderTimer = null; console.log("✓ 健康提醒已停止"); return true; } return false; }
  • Registers the 'stop_reminder' tool in the list of available tools, specifying its name, description, and input schema (empty object). This is used for the ListTools response.
    { name: "stop_reminder", description: "停止健康提醒定时器", inputSchema: { type: "object", properties: {}, }, },
  • The dispatch handler in the CallToolRequestSchema that invokes the stopReminder function and formats the response.
    case "stop_reminder": { const stopped = stopReminder(); return { content: [ { type: "text", text: JSON.stringify({ success: stopped, message: stopped ? "健康提醒已停止" : "当前没有运行中的提醒", }, null, 2), }, ], }; }
  • The input schema definition for the 'stop_reminder' tool, which requires no parameters (empty properties).
    inputSchema: { type: "object", properties: {}, },
  • Global state variables used by the stopReminder handler: the timer reference that gets cleared and current config.
    let reminderTimer: NodeJS.Timeout | null = null; let currentConfig: ReminderConfig = { ...defaultConfig };

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