We have a large application using multiple NSF databases. Several contain reference information/dictionary terms used by other Domino applications. Currently to access business logic in the external database you must call an agent with a referenced context document.
Otherwise you must duplicate the script libraries into each application then access the reference data using opening view objects from the external application. This creates excessive communication overhead.
If application A could call a subroutine/function/or agent in application B with direct parameter passing supported, significant savings on multiple fronts would be achieved. Code base could be flattened by isolating business logic to the data source application. For functions requiring complex view and collection handling, Application A only needs to be concerned with input and output parameters.
The overhead of creating, processing and (often) destroying context documents used for information interchange is eliminated besides access control and other implications.
If a direct call into a external script library were supported, processing can be more synchronous and positive state awareness achieved versus current situation when running agents on the server with context documents