Systematic debugging and root cause analysis using PAL MCP. Use for complex bugs, mysterious errors, race conditions, memory leaks, and integration problems...
Systematic debugging with hypothesis testing and expert validation through the PAL MCP server.
Use the mcp__pal__debug tool for multi-step investigation:
# Step 1: Start investigation
result = mcp__pal__debug(
step="Investigating: API returns 500 on concurrent requests",
step_number=1,
total_steps=3,
next_step_required=True,
findings="Initial investigation - gathering context",
hypothesis="Unknown - needs investigation",
confidence="exploring",
relevant_files=["/path/to/api/handler.py"]
)
# Step 2+: Continue with continuation_id
result = mcp__pal__debug(
step="Found evidence in logs showing connection pool exhaustion",
step_number=2,
total_steps=3,
next_step_required=True,
findings="Connection pool limit reached under load",
hypothesis="Database connection pool too small for concurrent requests",
confidence="high",
continuation_id=result["continuation_id"]
)
| Parameter | Type | Description |
|---|---|---|
step |
string | Current investigation narrative |
step_number |
int | Current step (starts at 1) |
total_steps |
int | Estimated total steps needed |
next_step_required |
bool | True if more investigation needed |
findings |
string | Evidence and discoveries |
| Parameter | Type | Description |
|---|---|---|
hypothesis |
string | Current root cause theory |
confidence |
enum | exploring/low/medium/high/very_high/almost_certain/certain |
relevant_files |
list | Absolute paths to relevant files |
files_checked |
list | All files examined |
issues_found |
list | Issues with severity levels |
continuation_id |
string | Continue previous session |
model |
string | Override model (default: openai/gpt-5) |
thinking_mode |
enum | minimal/low/medium/high/max |
exploring - Just starting, no theory yetlow - Early hypothesis, little evidencemedium - Some supporting evidencehigh - Strong evidence for theoryvery_high - Very confident, need verificationalmost_certain - Nearly confirmedcertain - 100% confirmed (skips external validation)Step 1: State the problem and initial direction
↓
Step 2: Gather evidence, form hypothesis
↓
Step 3: Test hypothesis, refine or pivot
↓
Step N: Confirm root cause, propose fix
# Start
mcp__pal__debug(
step="API returning 500 errors under load. Starting investigation.",
step_number=1,
total_steps=4,
next_step_required=True,
findings="Errors correlate with high traffic periods",
hypothesis="Resource exhaustion under load",
confidence="exploring",
relevant_files=[
"/app/api/routes.py",
"/app/db/connection.py"
]
)