File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -592,9 +592,12 @@ server.registerTool(
592592 " get_alerts" ,
593593 {
594594 description: " Get weather alerts for a state" ,
595- inputSchema: {
596- state: z .string ().length (2 ).describe (" Two-letter state code (e.g. CA, NY)" ),
597- }
595+ inputSchema: {
596+ state: z
597+ .string ()
598+ .length (2 )
599+ .describe (" Two-letter state code (e.g. CA, NY)" ),
600+ },
598601 },
599602 async ({ state }) => {
600603 const stateCode = state .toUpperCase ();
@@ -643,9 +646,17 @@ server.registerTool(
643646 {
644647 description: " Get weather forecast for a location" ,
645648 inputSchema: {
646- latitude: z .number ().min (- 90 ).max (90 ).describe (" Latitude of the location" ),
647- longitude: z .number ().min (- 180 ).max (180 ).describe (" Longitude of the location" ),
648- }
649+ latitude: z
650+ .number ()
651+ .min (- 90 )
652+ .max (90 )
653+ .describe (" Latitude of the location" ),
654+ longitude: z
655+ .number ()
656+ .min (- 180 )
657+ .max (180 )
658+ .describe (" Longitude of the location" ),
659+ },
649660 },
650661 async ({ latitude , longitude }) => {
651662 // Get grid point data
@@ -722,7 +733,7 @@ server.registerTool(
722733 ],
723734 };
724735 },
725- )
736+ );
726737```
727738
728739### Running the server
You can’t perform that action at this time.
0 commit comments