Skip to main content
Glama

kb_coverage

Read-onlyIdempotent

Generate structural coverage and end-to-end requirement proof reports for requirements, symbols, or grouped types, showing evidence levels, blockers, and repair plans.

Instructions

Generate curated structural coverage and conservative end-to-end requirement proof reports for requirements, symbols, or grouped types. Use it to ask which requirements are tested end to end, how strong each requirement's evidence is (evidenceLevel: proved, tested, asserted or unverified), and what blocks the rest; use kb_find_gaps for a plain list of missing links and kb_check for rule violations. Reports include the compatible repair plan plus typed kibi.migration-plan.v2 actions; semantic and E2E actions remain review/execution work. Paginated plans identify incomplete scope and no mutation occurs.

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_coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoReport shape: req (proof status and repair plan), symbol (ownership coverage) or type (counts per type).
kbNoOptional KB dependency name from .kb/dependencies.json to read, at its pinned commit, instead of this project's KB.
tagsNoKeep rows for entities carrying any of these metadata tags.
limitNoMaximum rows to return. When the repair plan reports scope.complete false, rerun with offset 0 and a larger limit.
offsetNoZero-based row offset for pagination.
statusesNoreq mode: include only rows whose proofStatus is listed. The summary always covers the whole KB.
workspaceRootNoOptional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's.
includePassingNoAlso return rows that are already tested or not applicable. By default only rows that still need repair are returned.
migrationLimitNoMaximum requirement migration batches to preview. Defaults to one review batch.
migrationOffsetNoZero-based offset into ready semantic-inventory batches.
includeTransitiveNoCount symbol coverage reached transitively through linked entities, not only direct links.
includeMigrationPreviewNoOpt in to a deterministic, read-only kibi.legacy-migration-plan.v1 preview for ready semantic-inventory repair batches.
migrationPredicateLimitNoMaximum exact predicate-schema candidates retained per assertive proposition.
migrationPredicateMinScoreNoMinimum deterministic predicate-schema rank score retained in migration previews.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo
statusYes
effectsYes
operationYes
diagnosticsYes
nextActionsYes
kibiProtocolYes
resultVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changedv0.1.10
    • removedInput schema / properties / by / anyOf
      Removed value: -[
      -  {
      -    "const": "req",
      -    "type": "string"
      -  },
      -  {
      -    "const": "symbol",
      -    "type": "string"
      -  },
      -  {
      -    "const": "type",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / by / description
      Previous value: -"Report shape: req gives per-requirement proof status and a repair plan, symbol gives per-symbol ownership coverage, type gives counts per entity type."New value: +"Report shape: req (proof status and repair plan), symbol (ownership coverage) or type (counts per type)."
    • addedInput schema / properties / by / enum
      Added value: +[
      +  "req",
      +  "symbol",
      +  "type"
      +]
    • addedInput schema / properties / by / type
      Added value: +"string"
    • changedInput schema / properties / kb / description
      Previous value: -"Optional KB dependency to read instead of this project's own KB: a name declared in .kb/dependencies.json and pinned in .kb/dependencies.lock.json. The answer comes from that repository's own read-only KB at the pinned commit, kept apart from this project's KB. Omit it to read this project's KB."New value: +"Optional KB dependency name from .kb/dependencies.json to read, at its pinned commit, instead of this project's KB."
    • changedInput schema / properties / statuses / description
      Previous value: -"Requirement proof-status filter (req mode): include only rows whose proofStatus is listed. Selecting statuses implies include-passing; not_applicable rows carry their typed applicability reason in proofStages.applicability.reason. The summary always reflects the whole KB."New value: +"req mode: include only rows whose proofStatus is listed. The summary always covers the whole KB."
    • removedInput schema / properties / statuses / items / anyOf
      Removed value: -[
      -  {
      -    "const": "tested",
      -    "type": "string"
      -  },
      -  {
      -    "const": "missing",
      -    "type": "string"
      -  },
      -  {
      -    "const": "unresolved",
      -    "type": "string"
      -  },
      -  {
      -    "const": "not_applicable",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / statuses / items / enum
      Added value: +[
      +  "tested",
      +  "missing",
      +  "unresolved",
      +  "not_applicable"
      +]
    • addedInput schema / properties / statuses / items / type
      Added value: +"string"
    • 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. Changed1 schema field changedv0.1.8
    • addedInput schema / properties / kb
      Added value: +{
      +  "description": "Optional KB dependency to read instead of this project's own KB: a name declared in .kb/dependencies.json and pinned in .kb/dependencies.lock.json. The answer comes from that repository's own read-only KB at the pinned commit, kept apart from this project's KB. Omit it to read this project's KB.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "pattern": "^[a-z0-9][a-z0-9._-]{0,63}$",
      +  "type": "string"
      +}
  3. Changed7 schema fields changedv0.1.3
    • addedInput schema / properties / by / description
      Added value: +"Report shape: req gives per-requirement proof status and a repair plan, symbol gives per-symbol ownership coverage, type gives counts per entity type."
    • addedInput schema / properties / includePassing / description
      Added value: +"Also return rows that are already tested or not applicable. By default only rows that still need repair are returned."
    • addedInput schema / properties / includeTransitive / description
      Added value: +"Count symbol coverage reached transitively through linked entities, not only direct links."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return. When the repair plan reports scope.complete false, rerun with offset 0 and a larger limit."
    • addedInput schema / properties / offset / description
      Added value: +"Zero-based row offset for pagination."
    • changedInput schema / properties / statuses / items / anyOf
      Previous value: -[
      -  {
      -    "const": "proven",
      -    "type": "string"
      -  },
      -  {
      -    "const": "missing",
      -    "type": "string"
      -  },
      -  {
      -    "const": "unresolved",
      -    "type": "string"
      -  },
      -  {
      -    "const": "not_applicable",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "tested",
      +    "type": "string"
      +  },
      +  {
      +    "const": "missing",
      +    "type": "string"
      +  },
      +  {
      +    "const": "unresolved",
      +    "type": "string"
      +  },
      +  {
      +    "const": "not_applicable",
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / tags / description
      Added value: +"Keep rows for entities carrying any of these metadata tags."
  4. 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=true, idempotentHint=true and destructiveHint=false, so the description's 'no mutation occurs' is corroborating rather than novel. It does earn credit for disclosing behavior not in the structured fields: semantic and E2E repair actions stay as review/execution work rather than being applied, and paginated plans flag incomplete scope so the agent knows a truncated result is possible. It stops short of describing the evidenceLevel derivation or what the report body contains, leaving a small gap.

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?

The prose is front-loaded with purpose and then the alternative routing, which is the right order. It is dense and jargon-heavy ('compatible repair plan plus typed kibi.migration-plan.v2 actions', 'Paginated plans identify incomplete scope and no mutation occurs'), and the trailing sentence is a compressed afterthought, but no sentence is truly wasted for a tool of this complexity.

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?

With an output schema present, the description need not explain return values, and it wisely focuses on when to call it, what each mode means, and the pagination caveat. Given 14 optional parameters and no required ones, the definition is adequate, though it leaves the migration-preview parameters largely to the schema and never clarifies the relationship between the two migration plan versions it mentions.

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% across 14 parameters, so the schema already carries per-parameter meaning and the baseline is 3. The description adds only indirect mapping (the three report shapes correspond to the 'by' enum) and introduces evidenceLevel values (proved/tested/asserted/unverified) that are not actually a parameter here, potentially blurring them with the 'statuses' enum. It does not explain tags, includeTransitive, or the migrationPredicate* knobs beyond what the schema states.

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?

The definition opens with a specific verb ('Generate') and a concrete resource ('curated structural coverage and conservative end-to-end requirement proof reports'), and it names the three report shapes (requirements, symbols, grouped types). It also explicitly distinguishes its output from siblings by naming kb_find_gaps ('plain list of missing links') and kb_check ('rule violations'), so an agent can select it without reading any schema.

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?

The description gives an explicit use case in question form ('ask which requirements are tested end to end, how strong each requirement's evidence is... and what blocks the rest') and routes two adjacent needs to specific alternatives with their differing output. The distinction is behavioral, not just nominative, so the agent knows why it would pick one over the other.

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