@@ -34,24 +34,24 @@ def register(mcp: FastMCP) -> None:
3434
3535 @mcp .tool (annotations = READONLY )
3636 @require_permission (PermissionLevel .READ )
37- async def list_notifications (limit : int = 50 , offset : int = 0 ) -> str :
37+ async def list_notifications (limit : int = 25 , offset : int = 0 ) -> str :
3838 """List notifications for the current Nextcloud user.
3939
4040 Returns notifications sorted by newest first. Note: the Nextcloud
41- server returns at most ~ 25 notifications per request and does not
42- support server-side pagination, so the effective total is capped
43- by the server regardless of the limit value.
41+ server returns at most 25 notifications and does not support
42+ server-side pagination, so the total available is capped by the
43+ server regardless of the limit value.
4444
4545 Args:
46- limit: Maximum number of notifications to return (1-200 , default 50 ).
46+ limit: Maximum number of notifications to return (1-25 , default 25 ).
4747 offset: Number of notifications to skip for pagination (default 0).
4848
4949 Returns:
5050 JSON with "data" (list of notification objects with notification_id, app,
5151 user, datetime, subject, message, and optionally link and actions) and
5252 "pagination" (count, offset, limit, has_more).
5353 """
54- limit = max (1 , min (200 , limit ))
54+ limit = max (1 , min (25 , limit ))
5555 offset = max (0 , offset )
5656 client = get_client ()
5757 data = await client .ocs_get ("apps/notifications/api/v2/notifications" )
0 commit comments