Skip to main content
Glama

ivd_judgment_save_codified

Persist agent-filled codified fields after validating required data, then transition ledger entries from raw to codified so IVD can verify implementations against structured intents.

Instructions

Persist the agent-filled codified fields. Validates the 5 required fields and capability_subtype (when fix_action_type=capability_addition), then transitions the ledger entry from raw → codified. 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>",
      "codified_yaml": "<codified_yaml>"
    },
    "name": "ivd_judgment_save_codified"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_idYesLedger entry id.
project_rootNoOptional path to repo root.
codified_yamlYesYAML containing a `codified:` block with the 5 required fields, optionally a top-level `domain_depth`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses that five required fields are validated, that capability_subtype is conditionally required when fix_action_type=capability_addition, and that the entry transitions raw → codified. It omits error behavior on validation failure and whether re-saving a codified entry is idempotent or an error.

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?

Three dense sentences that front-load the action, then validation rules, then the state transition and precondition. The trailing '(IVD v3.0)' tag adds no operational value, but otherwise there is no wasted wording.

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?

For a mutation tool with no annotations and no output schema, the description covers preconditions, validation, and the state transition well, but says nothing about what is returned on success or how failures surface. That leaves the post-call picture incomplete for an agent coordinating multiple steps.

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 baseline is 3, but the description adds the conditional capability_subtype rule that the schema does not state, giving real meaning to what must be inside codified_yaml. project_root and entry_id remain no more than what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Persist the agent-filled codified fields,' which makes it clearly the write-back step rather than the generation step. The 'agent-filled' qualifier distinguishes it implicitly from sibling tools like ivd_judgment_codify, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

It gives a precondition ('Dormant unless `.judgment/` exists') and implies the workflow position by saying the fields are 'agent-filled,' but never states when to use this versus ivd_judgment_codify or what to do if the entry is already codified. Usage is implied rather than directed.

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