Interface McpCatalogAccessPolicy.ToolAccessEvaluator

Enclosing class:
McpCatalogAccessPolicy
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Concurrently callable tool availability evaluator.
Author:
Mark Allen
  • Method Details

    • isToolAccessible

      Determines whether a caller may discover or invoke a tool. Subscription projections supply a header-free derived request context; use its current admitted principal, partition and application context.
      Parameters:
      requestContext - admitted request context
      toolRegistration - canonical, untranslated registration
      invocationFeatures - features scoped to this authorization check
      Returns:
      true if accessible; never null
      Throws:
      Exception - if availability cannot be established