Skip to main content
Glama

kb_plan_bootstrap

Read-onlyIdempotent

Generate a deterministic, snapshot-bound onboarding plan for repositories with empty or incomplete knowledge bases, returning evidence, ordered actions, and a plan hash without mutation.

Instructions

Generate a deterministic, snapshot-bound kibi.bootstrap-plan.v1 for repository onboarding. Use it only to onboard a repository whose KB is empty or incomplete (the kibi-bootstrap skill drives it); for a change in an onboarded project use kb_compile_intent. Read-only analysis of the repository plus any declared knowledge sources and cited intent claims returns evidence, bounded context questions, exact dependency-ordered actions, a canonical plan hash, and no mutation side effects.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kb_plan_bootstrap"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityTypesNoOptional filter to limit candidate generation to specific entity types.
maxCandidatesNoBudget for candidates Kibi discovers itself; declared intentClaims are never capped. Clamped to [1, 200]. Default: 50.
minConfidenceNoMinimum confidence threshold for candidates. Clamped to [0.60, 0.95]. Default: 0.80.
workspaceRootNoOptional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's.
bootstrapContextNoOptional declared bootstrap context supplied by the agent to ground the read-only synthesis output.
includeGenericMarkdownNoWhether to include generic markdown content as candidate facts. Default: true, or false with declared intentClaims.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo
statusYes
effectsYes
operationYes
diagnosticsYes
nextActionsYes
kibiProtocolYes
resultVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changedv0.1.10
    • changedInput schema / properties / bootstrapContext / properties / conflicts / description
      Previous value: -"Contradictions the agent found between declared intentClaims and leaves for the human to resolve. Each becomes a cited fact candidate with fact_kind observation tagged review:conflict. Every claimReference must match a declared claim's sourceId and reference. Bound into the plan hash."New value: +"Contradictions between declared intentClaims left for the human; each becomes a fact tagged review:conflict."
    • changedInput schema / properties / bootstrapContext / properties / intentClaims / description
      Previous value: -"Statements the agent harvested from knowledgeSources, each citing its source. Intent claims (the default kind) that the strict modeler can ground become cited req candidates; the rest become explicit authoring follow-ups. Observation and open_question claims never become requirements: they become cited fact candidates with fact_kind observation, open questions tagged review:open-question. Every intent and observation claim needs an excerpt: the created entity's body keeps the statement, then a '## Source' section with the blockquoted excerpt, the source title and the reference. Bound into the plan hash."New value: +"Statements harvested from knowledgeSources, each citing its source and excerpt; intent claims may become requirements."
    • changedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / component / description
      Previous value: -"Optional component the claim is about (for example recorder). Generated subject keys take the shape component.aspect with the aspect from the claim's subject. Without a component on the claim or its knowledge source, a claim whose subject is not a single word or already dotted becomes an authoring follow-up with a diagnostic instead of a malformed subject key."New value: +"Optional component the claim is about; generated subject keys take the shape component.aspect."
    • changedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / excerpt / description
      Previous value: -"Verbatim passage from the source the claim came from. Required for intent and observation claims (optional for open_question): Kibi persists it with the knowledge source title and reference in the created entity's '## Source' section, because the ticket or page may be gone by the next migration."New value: +"Verbatim passage the claim came from; required for intent and observation claims, kept in the entity's Source section."
    • removedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / kind / anyOf
      Removed value: -[
      -  {
      -    "const": "intent",
      -    "type": "string"
      -  },
      -  {
      -    "const": "observation",
      -    "type": "string"
      -  },
      -  {
      -    "const": "open_question",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / kind / description
      Previous value: -"intent: intended behavior (may become a req). observation: how things are today, without stating intent. open_question: something the sources leave undecided. Default: intent."New value: +"intent (may become a req), observation (how things are today) or open_question. Default: intent."
    • addedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / kind / enum
      Added value: +[
      +  "intent",
      +  "observation",
      +  "open_question"
      +]
    • addedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / kind / type
      Added value: +"string"
    • changedInput schema / properties / bootstrapContext / properties / intentClaims / items / properties / rationale / description
      Previous value: -"Optional reason the requirement exists, as the source states it or the human answered when asked. It becomes the requirement's rationale and its body's '## Context' section. Never invent one."New value: +"Optional reason the requirement exists, as the source or the human states it. Never invent one."
    • changedInput schema / properties / bootstrapContext / properties / knowledgeSources / description
      Previous value: -"Knowledge sources outside the code that the human confirmed during the bootstrap interview (issue trackers, wikis, specs, decision logs). Kibi never contacts them; the agent reads them through its own connectors and cites them from intentClaims. Bound into the plan hash."New value: +"Knowledge sources outside the code the human confirmed (trackers, wikis, specs); the agent cites them from intentClaims."
    • removedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / authority / anyOf
      Removed value: -[
      -  {
      -    "const": "authoritative",
      -    "type": "string"
      -  },
      -  {
      -    "const": "supporting",
      -    "type": "string"
      -  },
      -  {
      -    "const": "stale",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / authority / description
      Previous value: -"The human's call: authoritative claims become higher-confidence candidates, supporting claims lower ones, and stale sources are cited but never produce candidates."New value: +"The human's call: authoritative, supporting, or stale (cited, never a candidate)."
    • addedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / authority / enum
      Added value: +[
      +  "authoritative",
      +  "supporting",
      +  "stale"
      +]
    • addedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / authority / type
      Added value: +"string"
    • changedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / component / description
      Previous value: -"Optional component this source's claims are about (for example recorder). It becomes the first segment of each generated subject_key (component.aspect); a claim's own component overrides it."New value: +"Optional component the source's claims are about; the first segment of each generated subject_key."
    • removedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / kind / anyOf
      Removed value: -[
      -  {
      -    "const": "issue_tracker",
      -    "type": "string"
      -  },
      -  {
      -    "const": "wiki",
      -    "type": "string"
      -  },
      -  {
      -    "const": "specification",
      -    "type": "string"
      -  },
      -  {
      -    "const": "design",
      -    "type": "string"
      -  },
      -  {
      -    "const": "decision_log",
      -    "type": "string"
      -  },
      -  {
      -    "const": "support",
      -    "type": "string"
      -  },
      -  {
      -    "const": "chat",
      -    "type": "string"
      -  },
      -  {
      -    "const": "repository_docs",
      -    "type": "string"
      -  },
      -  {
      -    "const": "other",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / kind / enum
      Added value: +[
      +  "issue_tracker",
      +  "wiki",
      +  "specification",
      +  "design",
      +  "decision_log",
      +  "support",
      +  "chat",
      +  "repository_docs",
      +  "other"
      +]
    • addedInput schema / properties / bootstrapContext / properties / knowledgeSources / items / properties / kind / type
      Added value: +"string"
    • removedInput schema / properties / entityTypes / items / anyOf
      Removed value: -[
      -  {
      -    "const": "req",
      -    "type": "string"
      -  },
      -  {
      -    "const": "scenario",
      -    "type": "string"
      -  },
      -  {
      -    "const": "test",
      -    "type": "string"
      -  },
      -  {
      -    "const": "adr",
      -    "type": "string"
      -  },
      -  {
      -    "const": "fact",
      -    "type": "string"
      -  },
      -  {
      -    "const": "symbol",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / entityTypes / items / enum
      Added value: +[
      +  "req",
      +  "scenario",
      +  "test",
      +  "adr",
      +  "fact",
      +  "symbol"
      +]
    • addedInput schema / properties / entityTypes / items / type
      Added value: +"string"
    • changedInput schema / properties / includeGenericMarkdown / description
      Previous value: -"Whether to include generic markdown file content as candidate facts. Default: true, or false when bootstrapContext declares intentClaims (the declared sources already carry the intent); set it explicitly to override."New value: +"Whether to include generic markdown content as candidate facts. Default: true, or false with declared intentClaims."
    • changedInput schema / properties / maxCandidates / description
      Previous value: -"Budget for candidates Kibi discovers itself (symbols, tests, repository documents). Declared intentClaims sit outside it: they are never capped and never use its slots. Clamped to [1, 200]. Default: 50."New value: +"Budget for candidates Kibi discovers itself; declared intentClaims are never capped. Clamped to [1, 200]. Default: 50."
    • changedInput schema / properties / workspaceRoot / description
      Previous value: -"Optional absolute path of the workspace this call is about when it differs from the one the server started in, for example the git worktree you are working in. The server answers from that workspace's knowledge base when it is a worktree of the same repository or lies under the client's MCP roots; otherwise it answers from its own workspace and adds a workspace_mismatch diagnostic. Host hooks fill this in automatically where available."New value: +"Optional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's."
    • removedOutput schema / properties / diagnostics / items / properties / severity / anyOf
      Removed value: -[
      -  {
      -    "const": "info",
      -    "type": "string"
      -  },
      -  {
      -    "const": "warning",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / diagnostics / items / properties / severity / enum
      Added value: +[
      +  "info",
      +  "warning",
      +  "error"
      +]
    • addedOutput schema / properties / diagnostics / items / properties / severity / type
      Added value: +"string"
    • removedOutput schema / properties / effects / items / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "completed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "failed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "not_applicable",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / effects / items / properties / status / enum
      Added value: +[
      +  "completed",
      +  "failed",
      +  "not_applicable"
      +]
    • addedOutput schema / properties / effects / items / properties / status / type
      Added value: +"string"
    • removedOutput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "success",
      -    "type": "string"
      -  },
      -  {
      -    "const": "committed_with_repairs",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / status / enum
      Added value: +[
      +  "success",
      +  "committed_with_repairs",
      +  "error"
      +]
    • addedOutput schema / properties / status / type
      Added value: +"string"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond them: analysis is snapshot-bound and deterministic, it reads declared knowledge sources and cited intent claims, and it emits evidence, bounded context questions, dependency-ordered actions and a canonical plan hash. The phrase 'no mutation side effects' largely restates readOnlyHint, which keeps it just short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the artifact and the when-to-use rule before the behavioral detail. Dense but every clause carries information; only the closing 'no mutation side effects' is mildly redundant with the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with six parameters, nested objects, and an output schema, the description covers purpose, selection criteria, read-only/deterministic behavior and the shape of what comes back. Since an output schema exists it need not detail return fields, so remaining gaps are minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all six parameters including the nested bootstrapContext fields, clamps and defaults. The description only gestures at the parameters collectively ('declared knowledge sources', 'cited intent claims') without adding format or usage detail, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (Generate) and a specific artifact (deterministic, snapshot-bound kibi.bootstrap-plan.v1) scoped to repository onboarding. An agent can tell immediately this is not a general compile or query tool, and the description explicitly contrasts it with kb_compile_intent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when: only for a repository whose KB is empty or incomplete, and names the driver (the kibi-bootstrap skill). It also gives an explicit when-not plus the alternative: for a change in an onboarded project, use kb_compile_intent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.