Clear Thought
clear_thoughtA detailed tool for dynamic and reflective problem-solving through thoughts. This tool helps analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens. Supports forward thinking (1→N), backward thinking (N→1), or mixed approaches.
When to use this tool:
- Breaking down complex problems into steps
- Planning and design with room for revision
- Analysis that might need course correction
- Problems where the full scope might not be clear initially
- Problems that require a multi-step solution
- Tasks that need to maintain context over multiple steps
- Situations where irrelevant information needs to be filtered out
Thinking Approaches:
Forward Thinking (Traditional Chain of Thought): Start at thought 1, work sequentially to thought N
- Use when: Exploring unknowns, brainstorming, open-ended analysis, discovery
- Pattern: thoughtNumber 1 → 2 → 3 → ... → N
- Example: "How can we improve user engagement?" Start with current state, explore options, reach conclusion
Backward Thinking (Goal-Driven Reasoning): Start at thought N (desired end state), work back to thought 1 (starting conditions)
- Use when: Designing systems, planning projects, solving well-defined problems, working from goals
- Pattern: thoughtNumber N → N-1 → N-2 → ... → 1
- Example: "Design a caching strategy for 10k req/s" Start with success criteria (thought 8), work backwards through prerequisites (monitoring, invalidation, implementation, profiling) to reach starting point (thought 1: define requirements)
- Tip: Begin with the desired outcome, then repeatedly ask "what must be true immediately before this?"
Mixed/Branched Thinking: Combine approaches or explore alternative paths using branch parameters
- Use when: Complex problems requiring multiple perspectives or hypothesis testing
- Pattern: Use isRevision, branchFromThought, and branchId to create alternative reasoning paths
Patterns Cookbook: The patterns cookbook guide is automatically provided as an embedded resource at thought 1 and at the final thought. You can also request it at any time using the includeGuide parameter. The cookbook contains 20+ reasoning patterns with examples and usage guidance.
Key features:
- You can adjust total_thoughts up or down as you progress
- You can question or revise previous thoughts
- You can add more thoughts even after reaching what seemed like the end
- You can express uncertainty and explore alternative approaches
- Not every thought needs to build linearly - you can branch or backtrack
- Generates a solution hypothesis
- Verifies the hypothesis based on the Chain of Thought steps
- Repeats the process until satisfied
- Provides a correct answer
Parameters explained:
- thought: Your current thinking step, which can include:
- Regular analytical steps
- Revisions of previous thoughts
- Questions about previous decisions
- Realizations about needing more analysis
- Changes in approach
- Hypothesis generation
- Hypothesis verification
- next_thought_needed: True if you need more thinking, even if at what seemed like the end
- thought_number: Current number in sequence (can go beyond initial total if needed)
- total_thoughts: Current estimate of thoughts needed (can be adjusted up/down)
- is_revision: A boolean indicating if this thought revises previous thinking
- revises_thought: If is_revision is true, which thought number is being reconsidered
- branch_from_thought: If branching, which thought number is the branching point
- branch_id: Identifier for the current branch (if any)
- needs_more_thoughts: If reaching end but realizing more thoughts needed
You should:
- Start with an initial estimate of needed thoughts, but be ready to adjust
- Feel free to question or revise previous thoughts
- Don't hesitate to add more thoughts if needed, even at the "end"
- Express uncertainty when present
- Mark thoughts that revise previous thinking or branch into new paths
- Ignore information that is irrelevant to the current step
- Generate a solution hypothesis when appropriate
- Verify the hypothesis based on the Chain of Thought steps
- Repeat the process until satisfied with the solution
- Provide a single, ideally correct answer as the final output
- Only set next_thought_needed to false when truly done and a satisfactory answer is reached
When to Use
Use this tool when you need to a detailed tool for dynamic and reflective problem-solving through thoughts. this tool helps analyze problems through a flexible thinking process that can adapt and evolve. each thought can build on, question, or revise previous insights as understanding deepens. supports forward thinking (1→n), backward thinking (n→1), or mixed approaches.
when to use this tool:
- breaking down complex problems into steps
- planning and design with room for revision
- analysis that might need course correction
- problems where the full scope might not be clear initially
- problems that require a multi-step solution
- tasks that need to maintain context over multiple steps
- situations where irrelevant information needs to be filtered out
thinking approaches:
forward thinking (traditional chain of thought): start at thought 1, work sequentially to thought n
- use when: exploring unknowns, brainstorming, open-ended analysis, discovery
- pattern: thoughtnumber 1 → 2 → 3 → ... → n
- example: "how can we improve user engagement?" start with current state, explore options, reach conclusion
backward thinking (goal-driven reasoning): start at thought n (desired end state), work back to thought 1 (starting conditions)
- use when: designing systems, planning projects, solving well-defined problems, working from goals
- pattern: thoughtnumber n → n-1 → n-2 → ... → 1
- example: "design a caching strategy for 10k req/s" start with success criteria (thought 8), work backwards through prerequisites (monitoring, invalidation, implementation, profiling) to reach starting point (thought 1: define requirements)
- tip: begin with the desired outcome, then repeatedly ask "what must be true immediately before this?"
mixed/branched thinking: combine approaches or explore alternative paths using branch parameters
- use when: complex problems requiring multiple perspectives or hypothesis testing
- pattern: use isrevision, branchfromthought, and branchid to create alternative reasoning paths
patterns cookbook: the patterns cookbook guide is automatically provided as an embedded resource at thought 1 and at the final thought. you can also request it at any time using the includeguide parameter. the cookbook contains 20+ reasoning patterns with examples and usage guidance.
key features:
- you can adjust total_thoughts up or down as you progress
- you can question or revise previous thoughts
- you can add more thoughts even after reaching what seemed like the end
- you can express uncertainty and explore alternative approaches
- not every thought needs to build linearly - you can branch or backtrack
- generates a solution hypothesis
- verifies the hypothesis based on the chain of thought steps
- repeats the process until satisfied
- provides a correct answer
parameters explained:
- thought: your current thinking step, which can include:
- regular analytical steps
- revisions of previous thoughts
- questions about previous decisions
- realizations about needing more analysis
- changes in approach
- hypothesis generation
- hypothesis verification
- next_thought_needed: true if you need more thinking, even if at what seemed like the end
- thought_number: current number in sequence (can go beyond initial total if needed)
- total_thoughts: current estimate of thoughts needed (can be adjusted up/down)
- is_revision: a boolean indicating if this thought revises previous thinking
- revises_thought: if is_revision is true, which thought number is being reconsidered
- branch_from_thought: if branching, which thought number is the branching point
- branch_id: identifier for the current branch (if any)
- needs_more_thoughts: if reaching end but realizing more thoughts needed
you should:
- start with an initial estimate of needed thoughts, but be ready to adjust
- feel free to question or revise previous thoughts
- don't hesitate to add more thoughts if needed, even at the "end"
- express uncertainty when present
- mark thoughts that revise previous thinking or branch into new paths
- ignore information that is irrelevant to the current step
- generate a solution hypothesis when appropriate
- verify the hypothesis based on the chain of thought steps
- repeat the process until satisfied with the solution
- provide a single, ideally correct answer as the final output
- only set next_thought_needed to false when truly done and a satisfactory answer is reached. This is part of the Clear Thought provider on xpay✦.
MCP Connection
Connect to xpay✦ to access this tool (and 1+ others):
{
"mcpServers": {
"xpay": {
"url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
}
}
}
For Claude Code:
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
How to Execute
Use the xpay✦ meta-tools to run this tool:
xpay_details— Get full input schema:xpay_details("clear-thought/clear_thought")xpay_run— Execute:xpay_run("clear-thought/clear_thought", { ...inputs })
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
totalThoughts | integer | Yes | Estimated total thoughts needed (for backward thinking, start with thoughtNumber = totalThoughts) |
branchId | string | No | Branch identifier |
thought | string | Yes | Your current thinking step |
thoughtNumber | integer | Yes | Current thought number (can be 1→N for forward thinking, or N→1 for backward/goal-driven thinking) |
needsMoreThoughts | boolean | No | If more thoughts are needed |
isRevision | boolean | No | Whether this revises previous thinking |
sessionId | string | No | Optional session identifier for isolating reasoning sessions. If not provided, uses 'default' session. Use different sessionIds to maintain separate thought histories for parallel reasoning tasks. |
includeGuide | boolean | No | Request the patterns cookbook guide as embedded resource (also provided automatically at thought 1 and final thought) |
nextThoughtNeeded | boolean | Yes | Whether another thought step is needed |
revisesThought | integer | No | Which thought is being reconsidered |
branchFromThought | integer | No | Branching point thought number |
Pricing
- Cost: $0.01/call
- Balance check: Use
xpay_balanceto check remaining credits - Get your API key at xpay.tools — $5 free credits included
Related Skills
- Clear Thought (all tools) — 2 tools
- Reset Session — $0.01/call
Links
- Tool page: https://xpay.tools/clear-thought/clear-thought/
- Provider: https://xpay.tools/clear-thought/
- All tools: https://xpay.tools/explore
How to Execute
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
totalThoughts | integer | Yes | Estimated total thoughts needed (for backward thinking, start with thoughtNumber = totalThoughts) |
branchId | string | No | Branch identifier |
thought | string | Yes | Your current thinking step |
thoughtNumber | integer | Yes | Current thought number (can be 1→N for forward thinking, or N→1 for backward/goal-driven thinking) |
needsMoreThoughts | boolean | No | If more thoughts are needed |
isRevision | boolean | No | Whether this revises previous thinking |
sessionId | string | No | Optional session identifier for isolating reasoning sessions. If not provided, uses 'default' session. Use different sessionIds to maintain separate thought histories for parallel reasoning tasks. |
includeGuide | boolean | No | Request the patterns cookbook guide as embedded resource (also provided automatically at thought 1 and final thought) |
nextThoughtNeeded | boolean | Yes | Whether another thought step is needed |
revisesThought | integer | No | Which thought is being reconsidered |
branchFromThought | integer | No | Branching point thought number |
Other Clear Thought Skills
Install Skill
Pricing
Cost
$0.01/call
Model
Flat rate
Provider
Clear Thought

