Skip to content

Commit ec91421

Browse files
claude[bot]olaservo
andcommitted
Improve parameter descriptions in sequential-thinking for better LLM type safety
Update thoughtNumber and totalThoughts parameter descriptions to use positive-only examples that guide LLMs toward correct numeric type usage. This addresses the issue where LLMs sometimes generate string values (e.g. "1") instead of numeric values (e.g. 1) for integer parameters. Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
1 parent 338d8af commit ec91421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sequentialthinking/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ You should:
206206
},
207207
thoughtNumber: {
208208
type: "integer",
209-
description: "Current thought number",
209+
description: "Current thought number (numeric value, e.g., 1, 2, 3)",
210210
minimum: 1
211211
},
212212
totalThoughts: {
213213
type: "integer",
214-
description: "Estimated total thoughts needed",
214+
description: "Estimated total thoughts needed (numeric value, e.g., 5, 10)",
215215
minimum: 1
216216
},
217217
isRevision: {

0 commit comments

Comments
 (0)