Skip to content

forgeplan_fpf_search

Search the FPF (First Principles Framework) knowledge base — 204 structured sections covering reasoning, trust calculus (B.3), ADI cycle (B.5), bounded contexts, and more. The default is BM25 keyword search with Russian morphology; passing semantic: true switches to BGE-M3 vector search when the semantic-search build feature is compiled in, with graceful fallback otherwise.

Category: FPF Knowledge Base

  • Looking up a principle — “what does FPF say about trust calculus?” → agents often hit B.3.
  • Grounding ADI reasoning — before generating hypotheses, fetch relevant FPF context.
  • Decision supportfpf_search "explore exploit" surfaces the exploration/exploitation balance rules.
  • Onboarding — help a new agent discover FPF vocabulary quickly.

The pipeline is identical to regular forgeplan_search: BM25 tokenizer with template noise stripping + Russian Snowball stemmer, optional vector rerank with BGE-M3.

NameTypeRequiredDescription
querystringyesSearch query (1-8192 chars, trimmed non-empty).
limitintegerno (default: 5, max: 50)Max results to return.
semanticboolno (default: false)Use vector search via BGE-M3. Falls back to keyword if semantic-search feature is not compiled.

Schema source: crates/forgeplan-mcp/src/server.rs::FpfSearchParams

{
"query": "trust calculus",
"mode": "keyword",
"results": [
{
"id": "B.3",
"title": "Trust Calculus",
"score": 9.41,
"snippet": "Trust is not binary. It is a calculus over evidence, context, and recency…",
"path": "B. Principles > B.3 Trust Calculus"
}
],
"total": 5,
"warning": null
}

On fallback:

{
"mode": "keyword",
"warning": "semantic search requested but semantic-search feature not compiled — fell back to keyword"
}
{ "query": "trust calculus", "limit": 5 }

Semantic variant:

{ "query": "how do agents handle uncertainty", "semantic": true }
  1. forgeplan_fpf_search with the concept you need.
  2. forgeplan_fpf_section with the top id — read full body.
  3. Feed the section into forgeplan_reason for ADI reasoning with FPF grounding.
Terminal window
forgeplan fpf search "trust calculus"
forgeplan fpf search "uncertainty" --semantic