docs: clarify sequentialthinking usage and add examples

This commit is contained in:
Arif Celebi
2026-04-08 23:49:45 +01:00
parent f4244583a6
commit bae042b4f2

View File

@@ -37,6 +37,36 @@ The Sequential Thinking tool is designed for:
- Tasks that need to maintain context over multiple steps
- Situations where irrelevant information needs to be filtered out
In practice, you do not call `sequential_thinking` directly by hand unless your client exposes raw tool calls. Instead, connect the server to an MCP-aware host and ask the model to think through a problem step by step. The host can then decide to call the tool one or more times while it works.
### What it looks like in use
Example prompts that typically benefit from this tool:
- `Plan a database migration from PostgreSQL 14 to 16, list risks, and revise the plan if downtime exceeds 5 minutes.`
- `Debug why this deployment only fails in production and show your reasoning step by step.`
- `Compare three architecture options for a file sync engine and branch if one assumption turns out to be wrong.`
### How to tell it is working
If your host or inspector shows tool activity, you should see repeated calls to `sequential_thinking` with fields such as:
- `thought`
- `thoughtNumber`
- `totalThoughts`
- `nextThoughtNeeded`
When the reasoning changes course, you may also see revision or branching fields like `isRevision`, `revisesThought`, `branchFromThought`, or `branchId`.
### Quick manual verification
After installing the server in your MCP host:
1. Restart or reload the host so it reconnects to the server.
2. Confirm the `sequential_thinking` tool appears in the host's MCP tool list or inspector.
3. Ask the host to solve a non-trivial problem in a step-by-step way.
4. Verify that the host invokes the tool multiple times instead of returning a one-shot answer.
## Configuration
### Usage with Claude Desktop
@@ -78,7 +108,6 @@ Add this to your `claude_desktop_config.json`:
```
To disable logging of thought information set env var: `DISABLE_THOUGHT_LOGGING` to `true`.
Comment
### Usage with VS Code