Skip to main content

resolve_matching_grants

Function resolve_matching_grants 

Source
pub fn resolve_matching_grants<'a>(
    scope: &'a ChioScope,
    tool_name: &str,
    server_id: &str,
    arguments: &Value,
) -> Result<Vec<MatchedGrant<'a>>, ScopeMatchError>
Expand description

Resolve the set of grants that authorise a tool invocation on the given server.

Returns the matched grants sorted by decreasing specificity (exact-exact first, then exact-wildcard, then wildcard-wildcard; ties broken by grant-list order).