CalendarTools

Provider for the calendar tool module. Wires up ReadCalendarTool, SearchEventsTool, ListCalendarsTool, CreateEventTool, UpdateEventTool and DeleteEventTool, which read/write events via CalendarContract.

The read tools need only READ_CALENDAR, so that is all requiredPermissions reports — a host with read-only calendar access still gets the read surface. The write tools (CreateEventTool, UpdateEventTool, DeleteEventTool) are gated inside all: they are registered only when WRITE_CALENDAR is also granted (mirroring how SettingsTools gates its write tools).

Functions

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

Calendar McpTools for the current grant state: read tools always, the write tools only with WRITE_CALENDAR.

Link copied to clipboard

True if all requiredPermissions are currently granted.

Link copied to clipboard

Permissions needed to register this module at all: READ_CALENDAR (write access is gated per tool in all).

Link copied to clipboard

Day agendas as MCP resources; register with DroidMcp.Builder.addResourceProvider.