Skip to main content
Glama

Plan readiness fixes

plan_fixes
Read-onlyIdempotent

Ranks mapping fixes by the metrics each unlocks or helps, listing missing GASP fields and failed readiness checks with effort classes; include generate_checks results to plan data fixes too.

Instructions

The ranked fix list for a mapping (readiness level 3, the Plan step): every GASP field a partly covered metric still needs and every readiness check that failed, ordered by the Core metrics each fix unlocks, then all metrics unlocked, then metrics it helps, with an effort class (small for a mapping, medium for a tag backfill or a pipeline fix, large for cross-system identity work) shown and used only as a tiebreak. A fix unlocks a metric when it is the last thing between that metric and covered-and-passing; a metric with two blockers counts as helped by each. Pass the results generate_checks produced to rank data fixes beside mapping gaps; without them the plan covers mapping gaps alone. Takes the mapping generate_query takes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "adapter": "<adapter>"
    },
    "name": "plan_fixes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many fixes to show (default 25).
outputNo'report' (default) or 'json' (every fix as data).
adapterYesYour mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON).
dialectNoSQL dialect used to decide which checks are runnable; omit to use the warehouse's, else postgres.
resultsNoThe rows the generate_checks statement returned, as JSON or CSV with check_id and violations.
period_spineNoThe period spine table the range checks read, as passed to generate_checks. Default gasp.period_spine.
semantic_modelNoWith an Ossie mapping: your semantic model document (YAML or JSON). Ignored for a GASP adapter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial semantics beyond them: the ranking order (unlocks, then all unlocked, then helps), the exact definition of 'unlocks' versus 'helped', and the effort classes with their tiebreak-only role. That is precisely the behavioral context an agent needs to interpret the output without guessing.

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 purpose is front-loaded in the first clause and every sentence carries substantive information about ranking or inputs. The effort-class aside and the 'unlocks vs helped' definition make sentences long and slightly tangled, costing some readability, but there is no filler.

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 7-parameter, read-only planning tool with no output schema, the description carries the important return-shape information (what is listed, how it is ordered, what the effort label means). The only remaining gap is that it does not describe the report-versus-json output shape, though the schema's output enum covers the choice.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by explaining what omitting 'results' does (mapping gaps only) and by tying 'adapter' to the same mapping generate_query takes. It does not touch limit/output/dialect/period_spine, but the schema already documents those adequately.

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 names a specific deliverable ('the ranked fix list for a mapping') and pins it to a stage ('readiness level 3, the Plan step') and to concrete contents (GASP fields a partly covered metric needs, failed readiness checks). It is clearly separable from neighbors like coverage_gap or readiness_report because it is the ranked, ordered remediation plan rather than a pass/fail summary.

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?

It states a concrete conditional: pass the results generate_checks produced to rank data fixes beside mapping gaps, and without them the plan covers mapping gaps alone. It also points at generate_query as the source of the mapping argument. It stops short of saying when to prefer readiness_report or coverage_gap instead, so it is strong context but not a full routing rule.

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