Skip to content

Commit 98cc27a

Browse files
committed
more output defs
1 parent 99a1c19 commit 98cc27a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/mcp/tools/challenges/queryChallenges.output.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export const QUERY_CHALLENGES_TOOL_OUTPUT_SCHEMA = z.object({
241241
handle: z
242242
.string()
243243
.describe('Winner handle on Topcoder platform'),
244-
userId: z.string().describe('Unique identifier for the user'),
244+
userId: z.number().describe('Unique identifier for the user'),
245245
placement: z.number().describe('Placement of the winner'),
246246
}),
247247
)
@@ -295,6 +295,12 @@ export const QUERY_CHALLENGES_TOOL_OUTPUT_SCHEMA = z.object({
295295
.string()
296296
.optional()
297297
.describe('Identifier of the predecessor phase (optional)'),
298+
additionalProperties: z
299+
.object({})
300+
.optional()
301+
.describe(
302+
'Additional properties for the current phase (optional)',
303+
),
298304
})
299305
.optional()
300306
.describe('Current phase of the challenge (optional)'),
@@ -341,6 +347,20 @@ export const QUERY_CHALLENGES_TOOL_OUTPUT_SCHEMA = z.object({
341347
.describe(
342348
'Number of checkpoint submissions for the challenge (optional)',
343349
),
350+
task: z
351+
.object({
352+
isTask: z
353+
.boolean()
354+
.describe('Indicates if the challenge is a task'),
355+
isAssigned: z
356+
.boolean()
357+
.describe('Indicates if the task is assigned'),
358+
memberId: z
359+
.number()
360+
.describe('Member ID of the assigned user (optional)'),
361+
})
362+
.optional()
363+
.describe('Task information for the challenge (optional)'),
344364
})
345365
.describe('Challenge object'),
346366
)

0 commit comments

Comments
 (0)