Skip to main content
Glama

ivd_run_constraint_tests

Runs only the pytest node IDs declared in an intent artifact's constraints and joint-satisfaction test, enabling opt-in local or CI verification of intent-linked tests.

Instructions

Opt-in pytest runner for intent-linked tests (local/CI only). Runs ONLY pytest node ids declared in constraints[].test and constraint_satisfiability.joint_satisfaction_test. Disabled unless IVD_TEST_RUNNER_ENABLED=true. Never runs inside ivd_validate.

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_run_constraint_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_secNoTotal timeout budget in seconds (default 120).
project_rootNoPath to repo root where tests live (defaults to IVD framework root when omitted).
artifact_yamlYesYAML content of the intent artifact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A4.4/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 well: it discloses the opt-in gate, the environment variable that unlocks it, the local/CI-only execution scope, and the hard restriction to artifact-declared node ids. It does not disclose what a run returns (pass/fail structure, exit semantics, captured output), which is a meaningful gap for an execution tool with no output schema.

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?

Four short sentences, each carrying a distinct constraint: purpose, test-selection scope, enablement gate, and sibling exclusion. The gating condition is stated early and nothing is redundant or padded.

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 side-effecting test-execution tool with three parameters and no output schema, the definition covers selection, enablement, environment, and sibling boundary well. The remaining shortfall is return/result semantics and failure behavior, which an agent would need to interpret a run.

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, but the description adds real meaning the schema does not: artifact_yaml is the source that determines WHICH tests execute via constraints[].test and joint_satisfaction_test. timeout_sec and project_root are left to the schema, which already describes them adequately.

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 gives a specific verb and resource ('pytest runner for intent-linked tests') and narrows execution precisely to 'pytest node ids declared in constraints[].test and constraint_satisfiability.joint_satisfaction_test'. It also explicitly distinguishes itself from the sibling ivd_validate, so an agent can tell the two apart without opening any 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?

It states the operational context ('local/CI only'), the precondition ('Disabled unless IVD_TEST_RUNNER_ENABLED=true'), and an exclusion ('Never runs inside ivd_validate'). What is missing is any positive routing advice about when to prefer this over a plain test invocation or over the other validation siblings.

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