Skip to content

Commit be47441

Browse files
committed
Update weather example remote
1 parent 8b7b3bb commit be47441

File tree

1 file changed

+3
-0
lines changed
  • integrations/mcp/tests/imperative/src/main/java/io/helidon/integrations/mcp/tests/imperative

1 file changed

+3
-0
lines changed

integrations/mcp/tests/imperative/src/main/java/io/helidon/integrations/mcp/tests/imperative/McpWeatherTool.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ public ToolContent process(McpParameters parameters) {
6464
""", f.properties().event(), f.properties.areaDesc(), f.properties.severity(),
6565
f.properties.description(), f.properties.instruction()))
6666
.collect(Collectors.joining("\n"));
67+
if (content.isBlank()) {
68+
content = "There is no weather alert in this state" + state;
69+
}
6770
return ToolContents.textContent(content);
6871
} catch (JsonProcessingException e) {
6972
throw new RuntimeException(e);

0 commit comments

Comments
 (0)