Skip to main content
Glama

ivd_judgment_resolve

Records the outcome and whether the fix held for a ledger entry, then moves it to resolved so future runs don't re-diagnose a settled issue.

Instructions

Close the loop on a ledger entry: record what happened after the fix was applied and whether it held, then transition the entry codified|paired → resolved. This is the outcome-logging step — without it, a future run re-derives a diagnosis that was already settled. Writes a resolution block ({outcome, held?, fix_applied?, resolved_at}) and moves the entry to .judgment/ledger/resolved/. Dormant unless .judgment/ exists. (IVD v3.1)

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": {
      "entry_id": "<entry_id>",
      "outcome": "<outcome>"
    },
    "name": "ivd_judgment_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
heldNoOptional: did the fix hold / did it actually work?
notesNoOptional notes.
outcomeYesWhat happened after the fix was applied (required).
entry_idYesLedger entry id (must be in state codified or paired).
fix_appliedNoOptional: what fix was actually applied.
project_rootNoOptional path to repo root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so: it discloses the valid source states, that it writes a `resolution` block with specific fields, and that the entry is physically moved to `.judgment/ledger/resolved/`. What's missing is error/rollback behavior if the entry is not in codified|paired, or whether the move is reversible.

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?

Front-loaded with the core action and state transition, then rationale, then the mechanics of what gets written. It's dense but nearly every clause carries information; the '(IVD v3.1)' tag and some parenthetical nesting are the only waste.

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 6-parameter mutation tool with no annotations and no output schema, the description covers the trigger, the state machine edge, the on-disk effect, and the prerequisite sufficiently for correct invocation. Return-value and failure-mode details are the only notable gap.

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 description coverage is 100%, so the baseline would be 3; the description adds modest value by naming the resolution block fields (outcome, held?, fix_applied?, resolved_at), clarifying that resolved_at is derived rather than supplied and that optional fields are indeed optional.

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 uses a specific verb and resource ('record what happened after the fix was applied', 'transition the entry codified|paired → resolved') and names the exact state transition, which lets an agent distinguish it from capture/codify/pair siblings that operate on other lifecycle stages.

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 the triggering condition (after a fix was applied and you want to record whether it held) and the cost of skipping it ('a future run re-derives a diagnosis that was already settled'), plus the gating precondition 'Dormant unless .judgment/ exists'. It stops short of routing to a named alternative, so 4 rather than 5.

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