Skip to main content
Glama

ivd_validate

Validates IVD artifact YAML for structure, required sections, and basic compliance before finalization, including Judgment-phase types like baseline, ledger_entry, comparison_pair, and pattern.

Instructions

Validate an IVD artifact before finalizing. Checks structure, required sections, and basic compliance. v3.0 adds Judgment-phase artifact types (baseline, ledger_entry, comparison_pair, pattern).

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": {
      "artifact_yaml": "<artifact_yaml>"
    },
    "name": "ivd_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_rootNoPath to repo root where constraint tests live (defaults to IVD framework root when omitted).
artifact_typeNoType of artifactintent
artifact_yamlYesYAML content of the artifact to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the nature of the checks (structural, required sections, compliance) which implies a read-only, non-mutating operation. It does not say whether the tool writes any state, whether failure is blocking, how results are surfaced, or that new v3.0 artifact types are checked with different rules — meaningful gaps for a gate-keeping 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?

Three short sentences, front-loaded with the primary action and purpose; the 'before finalizing' cue lands early. The third sentence largely repeats the enum values, so it earns only partial keep, but there is no padding or vagueness.

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 three-parameter, no-annotation, no-output-schema tool, the definition covers what is checked and which artifact types are accepted. It omits what a validation outcome looks like, whether errors are reported per-section, and how project_root affects the constraint checks, leaving the agent without enough to interpret results.

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 all three parameters are already documented, and the baseline is 3. The description's enumeration of artifact types adds only emphasis, since the same list appears in the enum, and it adds no meaning about project_root or the expected YAML content.

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 ('Validate an IVD artifact') plus the checks performed (structure, required sections, basic compliance), which is more than a restatement of the name. It does not, however, distinguish this from adjacent siblings such as ivd_review_intent, canon_check, or ivd_run_constraint_tests, leaving the agent to infer the boundary.

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?

'before finalizing' implies a lifecycle moment to call it, which is useful context. There is no explicit when-not guidance, no mention of prerequisite steps, and no named alternative for cases where validation is not the right action.

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