Skip to content

Commit 87ecde6

Browse files
committed
formatting
1 parent 3c0d5db commit 87ecde6

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

docs/docs/develop/build-server.mdx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)