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.
This commit is contained in:
parent
e190844218
commit
86dd11a199
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ public sealed class WeatherTools
|
|||
[McpServerTool, Description("Get weather alerts for a US state.")]
|
||||
public static async Task<string> 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue