filterToolsByRole(tools, role)
Returns only the tools whose paths match at least one pattern in the role:matchPattern(toolPath, pattern)
Tests whether a tool path matches a glob pattern:*matches exactly one segment**matches zero or more segments