Skip to content

Commit 86dd11a

Browse files
authored
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.
1 parent e190844 commit 86dd11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/QuickstartWeatherServer/Tools/WeatherTools.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public sealed class WeatherTools
1212
[McpServerTool, Description("Get weather alerts for a US state.")]
1313
public static async Task<string> GetAlerts(
1414
HttpClient client,
15-
[Description("The US state to get alerts for.")] string state)
15+
[Description("The US state to get alerts for. Use the 2 letter abbreviation for the state (e.g. NY).")] string state)
1616
{
1717
using var jsonDocument = await client.ReadJsonDocumentAsync($"/alerts/active/area/{state}");
1818
var jsonElement = jsonDocument.RootElement;

0 commit comments

Comments
 (0)