AlarmsTools

Provider for the alarms module: CreateAlarmTool, CreateTimerTool, CreateReminderTool and GetNextAlarmTool. Alarm/timer tools rely only on SET_ALARM (a normal, install-time permission) and the system clock app, and GetNextAlarmTool needs no permission, so they are always registered. The reminder tool writes a calendar event and is registered only when READ/WRITE_CALENDAR are granted — it is gated inside all (mirroring how SettingsTools gates its write tools) so missing calendar access never hides alarms/timers.

Functions

Link copied to clipboard
fun all(context: Context): List<McpTool>

Tools for the current grant state: alarm, timer and next-alarm always, CreateReminderTool only with calendar access.

Link copied to clipboard

true only when every entry in requiredPermissions is granted.

Link copied to clipboard

Permissions needed to register the module at all: just SET_ALARM. The calendar permissions used by CreateReminderTool are optional and checked per tool in all.