Loading...
Loading...
Compare original and translation side by side
ReadGrepBashTool: mcp__sequential-thinking__sequentialthinking
Parameters: {
"thought": "First, let me identify the possible causes of the RLS policy failure...",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}Bash: claude mcp call sequential-thinking sequentialthinking ... # This does not workmcp__sequential-thinking__sequentialthinkingReadGrepBashTool: mcp__sequential-thinking__sequentialthinking
Parameters: {
"thought": "First, let me identify the possible causes of the RLS policy failure...",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}Bash: claude mcp call sequential-thinking sequentialthinking ... # This does not workmcp__sequential-thinking__sequentialthinking| Use Sequential Thinking | Do NOT Use |
|---|---|
| Bug with 3+ possible causes needing elimination | Simple typo or obvious error |
| Architectural decision with competing trade-offs | Straightforward implementation |
| Multi-factor analysis where factors interact | Single-factor decision |
| Root cause analysis requiring hypothesis testing | Error with clear stack trace |
| Problems where early assumptions might be wrong | Problems with known solutions |
| 适用Sequential Thinking的场景 | 不适用场景 |
|---|---|
| 存在3种及以上可能原因、需要逐一排除的Bug | 简单拼写错误或明显错误 |
| 存在竞争权衡的架构决策 | 直接明了的实现任务 |
| 涉及多因素相互作用的分析 | 单因素决策 |
| 需要假设检验的根本原因分析 | 有清晰堆栈跟踪的错误 |
| 早期假设可能存在错误的问题 | 已有已知解决方案的问题 |
| Parameter | Type | Required | Purpose |
|---|---|---|---|
| string | Yes | The content of this reasoning step |
| number | Yes | Current step number (1-indexed) |
| number | Yes | Estimated total steps (can adjust) |
| boolean | Yes | |
| boolean | No | |
| number | No | Which thought number is being revised |
| number | No | Start an alternative path from this thought |
| string | No | Label for the branch (e.g., "alternative-approach") |
| boolean | No | |
| 参数 | 类型 | 是否必填 | 用途 |
|---|---|---|---|
| string | 是 | 此推理步骤的内容 |
| number | 是 | 当前步骤编号(从1开始) |
| number | 是 | 预估的总步骤数(可调整) |
| boolean | 是 | |
| boolean | 否 | 如果是修订之前的思考步骤,设为 |
| number | 否 | 要修订的思考步骤编号 |
| number | 否 | 从此思考步骤开始一条替代路径 |
| string | 否 | 分支的标签(例如"alternative-approach") |
| boolean | 否 | |
sequentialthinking({
thought: "The timesheet approval is failing silently. Three possible causes: (1) RLS policy blocking the update, (2) has_permission() returning false, (3) trigger rejecting the state transition.",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Testing hypothesis 1: The RLS policy for timesheets requires has_role_on_account(account_id) AND the user must be manager_or_above. Let me check if the user has the right role...",
thoughtNumber: 2,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Revising thought 2: Actually, the new permission system uses has_permission() not has_role_on_account(). The RLS policy might be using the old function.",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
isRevision: true,
revisesThought: 2,
needsMoreThoughts: true
})sequentialthinking({
thought: "Root cause identified: The RLS policy uses has_role_on_account() which checks system roles, but the user only has a custom role assigned. Need to update the policy to use has_permission() instead.",
thoughtNumber: 6,
totalThoughts: 6,
nextThoughtNeeded: false
})sequentialthinking({
thought: "The timesheet approval is failing silently. Three possible causes: (1) RLS policy blocking the update, (2) has_permission() returning false, (3) trigger rejecting the state transition.",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Testing hypothesis 1: The RLS policy for timesheets requires has_role_on_account(account_id) AND the user must be manager_or_above. Let me check if the user has the right role...",
thoughtNumber: 2,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Revising thought 2: Actually, the new permission system uses has_permission() not has_role_on_account(). The RLS policy might be using the old function.",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
isRevision: true,
revisesThought: 2,
needsMoreThoughts: true
})sequentialthinking({
thought: "Root cause identified: The RLS policy uses has_role_on_account() which checks system roles, but the user only has a custom role assigned. Need to update the policy to use has_permission() instead.",
thoughtNumber: 6,
totalThoughts: 6,
nextThoughtNeeded: false
})sequentialthinking({
thought: "What if we combine the service pattern from option A with the caching strategy from option B?",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
branchFromThought: 3,
branchId: "hybrid-approach"
})sequentialthinking({
thought: "What if we combine the service pattern from option A with the caching strategy from option B?",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
branchFromThought: 3,
branchId: "hybrid-approach"
})totalThoughtsneedsMoreThoughts: trueisRevision: truebranchFromThoughtnextThoughtNeeded: falsetotalThoughtsneedsMoreThoughts: trueisRevision: truebranchFromThoughtnextThoughtNeeded: falsenextThoughtNeeded: falsenextThoughtNeeded: falseisRevisionrevisesThoughtisRevisionrevisesThought