Function register_eager_mcp_tool_if_allowed
pub fn register_eager_mcp_tool_if_allowed(
wrapper: Arc<dyn Tool>,
tools: &mut Vec<Box<dyn Tool>>,
delegate_handle: Option<&Arc<RwLock<RawRwLock, Vec<Arc<dyn Tool>>>>>,
policy: Option<&ToolAccessPolicy>,
) -> boolExpand description
Register an eager MCP tool wrapper into tools (and the delegate handle,
when present) only if policy admits it. Returns true when the tool was
registered, false when the policy dropped it.