Skip to main content
Glama

ivd_judgment_codify

Generates a structured codify prompt and raw correction from a ledger entry so an agent can fill diagnosis fields for later persistence.

Instructions

Returns a structured codify prompt for the agent to fill in, plus the original raw correction. The agent fills the 5 codified fields (expected_result, detected_via, diagnosed_cause, proposed_fix, fix_action_type) and then calls ivd_judgment_save_codified to persist. Dormant unless .judgment/ exists. (IVD v3.0)

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>"
    },
    "name": "ivd_judgment_codify"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_idYesLedger entry id returned by ivd_judgment_capture.
project_rootNoOptional path to repo root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the shape of the return (structured prompt + raw correction), the required downstream call, and the `.judgment/` precondition. It never states read-only/non-mutating behavior outright, though 'Returns ... for the agent to fill in' strongly implies it.

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

Conciseness5/5

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

Three short sentences, front-loaded with what is returned, then the workflow, then the gating condition. No filler; the field list is exactly the payload the agent must produce.

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 two-param workflow step with no output schema, the description covers return content, follow-up tool, and precondition — enough to invoke correctly. Minor gaps remain around failure behavior for a stale or unknown entry_id and whether filling is idempotent.

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%, including the note that entry_id comes from ivd_judgment_capture, so the schema already documents both params. The description adds nothing about entry_id or project_root beyond that, which is the baseline case.

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?

States a specific verb and resource — returns a codify prompt plus the original raw correction — and names the exact follow-up tool (ivd_judgment_save_codified), so the agent can separate it from save/capture siblings without opening a schema.

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?

Gives an explicit workflow order (fill the 5 fields, then call ivd_judgment_save_codified) and a hard precondition: dormant unless `.judgment/` exists. No explicit when-not-to-use case, but the prerequisite effectively gates usage.

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