Fix Metadata Tool (#23175)

(cherry picked from commit ae71cf45015693131c4f62f192278258ca19cbb6)
This commit is contained in:
Mohit Yadav 2025-09-01 14:02:55 +05:30 committed by OpenMetadata Release Bot
parent ce3e3ec4c1
commit 6eda95a306

View File

@ -166,7 +166,7 @@ public class SearchMetadataTool implements McpTool {
"SearchMetadataTool does not support limits enforcement.");
}
private Map<String, Object> buildEnhancedSearchResponse(
public static Map<String, Object> buildEnhancedSearchResponse(
Map<String, Object> searchResponse,
String query,
int requestedLimit,
@ -226,7 +226,7 @@ public class SearchMetadataTool implements McpTool {
return result;
}
private Map<String, Object> cleanSearchResult(
public static Map<String, Object> cleanSearchResult(
Map<String, Object> source, List<String> requestedFields) {
Map<String, Object> result = new HashMap<>();
@ -247,7 +247,7 @@ public class SearchMetadataTool implements McpTool {
return result;
}
private Map<String, Object> createEmptyResponse() {
public static Map<String, Object> createEmptyResponse() {
Map<String, Object> result = new HashMap<>();
result.put("results", Collections.emptyList());
result.put("totalFound", 0);