Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/sequentialthinking/__tests__/input-schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ describe.skipIf(!existsSync(distIndexPath))('sequentialthinking input schema', (
await client?.close();
});

it('advertises accurate annotations (stateful and non-idempotent)', async () => {
const { tools } = await client.listTools();
const tool = tools.find(t => t.name === 'sequentialthinking');
expect(tool).toBeDefined();
expect(tool!.annotations).toEqual({
readOnlyHint: false,
destructiveHint: false,
idempotentHint: false,
openWorldHint: false,
});
});

it('advertises nextThoughtNeeded as required', async () => {
const { tools } = await client.listTools();
const tool = tools.find(t => t.name === 'sequentialthinking');
Expand Down
4 changes: 2 additions & 2 deletions src/sequentialthinking/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ You should:
needsMoreThoughts: coercedBoolean.optional().describe("If more thoughts are needed")
},
annotations: {
readOnlyHint: true,
readOnlyHint: false,
destructiveHint: false,
idempotentHint: true,
idempotentHint: false,
openWorldHint: false,
},
outputSchema: {
Expand Down