From 86dd11a199f2a260d005947427a53547ebd91649 Mon Sep 17 00:00:00 2001 From: Vladimir Negacevschi Date: Tue, 29 Apr 2025 02:08:45 +0100 Subject: [PATCH] Improve WeatherTools.GetAlerts description in sample (#363) The latest api.weather.gov API spec requires to use the 2 letter abbreviation for the state (e.g. NY), when getting the alerts for a state. --- samples/QuickstartWeatherServer/Tools/WeatherTools.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/QuickstartWeatherServer/Tools/WeatherTools.cs b/samples/QuickstartWeatherServer/Tools/WeatherTools.cs index 563d178..e02d4c3 100644 --- a/samples/QuickstartWeatherServer/Tools/WeatherTools.cs +++ b/samples/QuickstartWeatherServer/Tools/WeatherTools.cs @@ -12,7 +12,7 @@ public sealed class WeatherTools [McpServerTool, Description("Get weather alerts for a US state.")] public static async Task GetAlerts( HttpClient client, - [Description("The US state to get alerts for.")] string state) + [Description("The US state to get alerts for. Use the 2 letter abbreviation for the state (e.g. NY).")] string state) { using var jsonDocument = await client.ReadJsonDocumentAsync($"/alerts/active/area/{state}"); var jsonElement = jsonDocument.RootElement;