Skip to main content
Glama

ivd_judgment_check_installed

Detect whether the Judgment phase is active in one project or across a workspace by scanning for .judgment folders and returning read-only project summaries.

Instructions

Detect Judgment-phase activation across one or more projects. Two modes: (a) workspace_root set — scan recursively (up to max_depth) for .judgment/ folders and return per-project summaries (engine_version, ivd_version, baseline / ledger / pattern / recommendation counts, domains); (b) workspace_root unset — report on the single project_root. NEVER writes to disk — read-only by design (analog to canon_check_rules_installed's never-writes invariant). Use this to ask 'which projects in my workspace have the Judgment phase activated?' without spelunking the filesystem. (IVD v3.1, R6)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ivd_judgment_check_installed"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_depthNoWorkspace mode only: max recursion depth (default 3). VCS / virtualenv / node_modules dirs are always skipped.
project_rootNoProject mode only: path to repo root (when workspace_root is unset).
workspace_rootNoOptional: scan this directory recursively for `.judgment/` folders. When omitted, falls back to project_root mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and it does so well: it declares 'NEVER writes to disk — read-only by design' and reports what the response contains (engine_version, ivd_version, baseline/ledger/pattern/recommendation counts, domains). It does not cover edge behavior — an invalid project_root, or the result when no `.judgment/` folders are found — which is the remaining gap for an annotation-free 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?

Front-loaded with the two modes and dense throughout; the mode labels (a)/(b) make the branching easy to parse. Minor waste in the parenthetical analog aside and the '(IVD v3.1, R6)' tag, which do not help an agent decide or invoke.

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?

With no output schema, the description correctly takes on describing the returned per-project summary fields, and the read-only invariant is spelled out. For a 3-parameter, zero-annotation tool this is nearly complete; only failure/empty-result behavior is left undescribed.

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%, so each parameter is already documented (including default 3 and the VCS/virtualenv/node_modules skip rule). The description reinforces the mode-selection semantics of workspace_root vs project_root but adds no syntax, format, or constraint detail beyond the schema. Baseline 3 applies.

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+resource ('Detect Judgment-phase activation across one or more projects') and immediately names the sibling notion it is analogous to, plus the version lineage (IVD v3.1, R6). It is clearly distinguishable from the ivd_judgment_* mutation siblings (init, capture, codify) because it is framed as detection/reporting.

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 decision rule for the two modes (workspace_root set = recursive scan; unset = single project_root) and a concrete use-case question ('which projects in my workspace have the Judgment phase activated?'). It stops short of saying when NOT to reach for it instead of ivd_get_context or ivd_find_artifacts, so it is clear context without explicit exclusions.

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