Skip to content

Commit 2b9a255

Browse files
authored
Make the platform optional to give more space for LLMs to configure its value. (#8790)
1 parent e186ca9 commit 2b9a255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/tools/core/list_apps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const list_apps = tool(
1010
inputSchema: z.object({
1111
platform: z
1212
.enum(["ios", "android", "web", "all"])
13-
.default("all")
13+
.optional()
1414
.describe("the specific platform to list (omit to list all platforms)"),
1515
}),
1616
annotations: {
@@ -26,7 +26,7 @@ export const list_apps = tool(
2626
try {
2727
const apps = await listFirebaseApps(
2828
projectId!,
29-
platform === "all" ? AppPlatform.ANY : (platform.toUpperCase() as AppPlatform),
29+
!platform || platform === "all" ? AppPlatform.ANY : (platform.toUpperCase() as AppPlatform),
3030
);
3131
return toContent(apps);
3232
} catch (err: any) {

0 commit comments

Comments
 (0)