Mcp Research

Documentation for Prompts

MCP GoGrab AI — Internal Research & Browsing Protocol

Purpose

This document defines the mandatory process for conducting structured research inside mcp-gograb-ai.

The objective is not simple retrieval.
The objective is high-confidence insight (≥ 0.9 calibrated confidence) grounded in decisions, outcomes, patterns, and system intelligence.

This protocol must be followed for:


1. Core Principles

  1. Research must be structured, not reactive.
  2. Every conclusion must be calibrated.
  3. Decisions must be correlated with outcomes.
  4. Patterns must be validated, not assumed.
  5. If confidence < 0.9, continue researching.

2. Phase 1 — Context Initialization (Mandatory)

Always begin with:

preflight({ task: "<clear research objective>" })

If the topic relates to a past issue or theme:

find_similar({ query: "<problem or concept>" })

If prior reasoning or decision memory may exist:

intelligence({ action: "recall", situation: "<context>" })

If session-level history is relevant:

session({ action: "summary" })

Do not skip initialization.


3. Phase 2 — Structured Exploration

Select the appropriate exploration pathway.


A. Decision Archaeology

Use when investigating historical behavior, regressions, pivots, or repeated mistakes.

intelligence({ action: "trace", sessionNumber?: X })
intelligence({ action: "pivots" })
intelligence({ action: "loops" })

Goal:


B. Lessons & Reasoning Extraction

Use when identifying design principles or past learning.

intelligence({ action: "lessons", topic?: "..." })
intelligence({ action: "explain", event: "...", context: "..." })

Goal:


C. Outcome Correlation

Research is incomplete without outcome validation.

stats({ action: "enhanced" })
outcome({ action: "report", decisionId: "..." })
outcome({ action: "module", moduleName: "..." })

Goal:


D. Codebase Structural Intelligence

Use when analyzing drift, violations, or architecture integrity.

intelligence({ action: "analyze_dna", projectPath: "..." })
intelligence({ action: "violations" })

Goal:


E. Predictive Research

Use before major refactors or architectural changes.

intelligence({
  action: "simulate",
  simulateAction: "...",
  context: "...",
  alternatives: ["..."]
})

If assigning responsibility:

intelligence({
  action: "predict_best",
  taskType: "...",
  taskDescription: "..."
})

Goal:


4. Phase 3 — Confidence Calibration (Required)

Before presenting conclusions:

intelligence({
  action: "calibrate",
  rawConfidence: 0.X,
  domain: "<angular | architecture | platform | etc>"
})

Interpretation:

No major recommendation should be made without calibrated confidence.


5. Phase 4 — Insight Synthesis (Mandatory Output Structure)

Every research result must include:

1. Validated Facts

Concrete, traceable information from MCP.

2. Identified Patterns

Repeated themes, architectural tendencies, anti-patterns.

3. Risk Assessment

4. Reinforced Decisions

Which past decisions are confirmed as correct?

5. Decisions That Should Be Reconsidered

Which decisions show weak outcomes or recurring issues?

6. Calibrated Confidence Score

Explicit value after calibration.

Research is incomplete without structured synthesis.


6. Anti-Patterns (Do Not Do This)


7. When to Escalate

Escalate research depth if:

Escalation tools:

intelligence({ action: "reflect", taskSummary: "...", outcome: "...", lessonsLearned: [...] })
intelligence({ action: "gaps", domain: "..." })

8. System-Level Goal

Using this protocol should:

This is not browsing. This is institutional cognition.


9. Minimal Required Flow (Quick Reference)

preflight({ task: "..." })
find_similar({ query: "..." })
intelligence({ action: "recall", situation: "..." })
... structured exploration ...
stats({ action: "enhanced" })
intelligence({ action: "calibrate", rawConfidence: X, domain: "..." })

If confidence < 0.9 → Continue.

If confidence ≥ 0.9 → Conclude with synthesis.


End of Protocol.