Skip to content

Commit 9bce68f

Browse files
Update tool call descriptions
1 parent 3e32b7d commit 9bce68f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mcp-server/src/handlers/tool-handlers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const TOOL_DEFINITIONS = [
7676
},
7777
{
7878
name: 'create_game',
79-
description: 'Create a new game with interactive setup. This will ask you for preferences like difficulty, player options, and other game-specific settings.',
79+
description: 'Create a new game with interactive setup. This will ask you for preferences like difficulty, player options, and other game-specific settings. IMPORTANT: Only provide parameters that the user explicitly specified. DO NOT provide default values for optional parameters - missing parameters will trigger interactive elicitation.',
8080
inputSchema: {
8181
type: 'object',
8282
properties: {
@@ -96,12 +96,12 @@ export const TOOL_DEFINITIONS = [
9696
},
9797
playerName: {
9898
type: 'string',
99-
description: 'Your name in the game. If not provided, will be asked during setup.'
99+
description: 'Your name in the game. LEAVE EMPTY to trigger interactive setup - do not provide defaults like "Player" or "User".'
100100
},
101101
playerSymbol: {
102102
type: 'string',
103103
enum: ['X', 'O'],
104-
description: 'For tic-tac-toe: your symbol (X goes first, O goes second). If not provided, will be asked during setup.'
104+
description: 'For tic-tac-toe: your symbol (X goes first, O goes second). LEAVE EMPTY to trigger interactive setup - do not auto-select X.'
105105
},
106106
maxRounds: {
107107
type: 'number',
@@ -172,7 +172,7 @@ export async function handleToolCall(name: string, args: Record<string, unknown>
172172
if (!isSupportedGameType(genericGameType)) {
173173
throw new Error(`Unsupported game type: ${genericGameType}`)
174174
}
175-
return await createGameWithElicitation(genericGameType, genericGameId, server, args)
175+
return await createGameWithElicitation(genericGameType, genericGameId, server, args)
176176
}
177177
default:
178178
throw new Error(`Unknown tool: ${name}`)

0 commit comments

Comments
 (0)