Skip to main content
Glama

derive_gaps

Turn gap analysis results into tracked artifacts: file feature gaps into the backlog and elevate uncovered objectives into hard goal gates.

Instructions

Record what a gap analysis found. Feature gaps land in the backlog at 'proposed' under one proposal, so derive_page/derive_review work on them unchanged. Goal gaps become HARD gates: creating a goal reshapes what every feature hangs off, and gate_reopen cannot unwind it once work routes in, so it stays the principal's however well the pair agrees. Call gap_scan first and check every candidate against the refusals it returns — a settled refusal is a decision, not an oversight. Finding nothing is a real outcome; record it as one rather than manufacturing candidates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoDirectory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree.
noteNo
actorNo
scopeNoWhat to record; defaults to all. Scope bounds what is FILED, never what was examined — both kinds of gap come out of one reading of the same frame, since you cannot tell a missing feature from a missing goal until you have decided whether an existing objective covers it, and that decision IS the analysis. Passing gaps outside the scope is refused rather than dropped: a finding already made must not be discarded to satisfy a filter.
conferralNoRequired. ONE conferral for the whole analysis. Coverage is argued over the set — whether a seam between two objectives is real, whether something is genuinely uncovered or merely undocumented — and that argument does not decompose per candidate.
goal_gapsNoWork the project needs that NO existing objective covers. This is the finding nothing else in oz can produce, and the one that should be rarest — a non-goal is not a gap, it is the answer.
feature_gapsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does so strongly. It warns that feature gaps become 'proposed' backlog items, that goal gaps become HARD gates that gate_reopen cannot unwind once work routes in, and that a settled refusal from gap_scan is a decision rather than an oversight. These are exactly the consequential side-effects an agent needs to know before invoking a recording tool.

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 description is dense but efficient; nearly every sentence carries behavioral or sequencing value. It front-loads the core purpose with 'Record what a gap analysis found.' It is arguably a single dense paragraph rather than structured guidance, but given the complexity of the tool, the length is justified and there is little waste.

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

Completeness3/5

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

The description covers the tool's most important caveats, but it does not specify how to represent a legitimate 'nothing found' outcome in the schema (empty arrays? a single call?), nor does it explain the returned result since there is no output schema. The schema provides strong parameter-level documentation, so this is not a fatal gap, but a complex tool with no output schema should give a bit more operational context.

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 57%, and the schema already documents most parameters richly. The description adds high-level meaning about why goal_gaps are consequential and how feature_gaps flow downstream, but it does not compensate for the undocumented parameters or clarify how to encode the 'finding nothing' outcome in terms of specific parameter values. This is adequate but not exceptional.

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 description opens with a specific verb and resource: 'Record what a gap analysis found.' It then distinguishes the two artifact types (feature gaps vs goal gaps) and explicitly ties feature gaps to downstream sibling tools (derive_page/derive_review), so an agent can tell which output this tool produces and how it relates to nearby tools.

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

Usage Guidelines4/5

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

The description gives explicit sequencing guidance: 'Call gap_scan first and check every candidate against the refusals it returns.' It also sets a clear policy for when recording nothing is appropriate, which is a form of when-to-use guidance. However, it does not explicitly name an alternative tool to use instead of derive_gaps in any situation, so the 'vs alternatives' dimension is only partially addressed.

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