Skip to main content
Glama

Run the tiered migration gate on a ported project

migrate_gate
Idempotent

Runs a three-tier verification gate on a generated Maven project: compiles tests, replays recorded cases through a ReplayTest, and checks semantic trap coverage, returning a per-tier verdict.

Instructions

Run the tiered java-anything gate on a generated Maven project: Prove (mvn test-compile), Gate (mvn test on the generated ReplayTest ? 100% of recorded cases must replay), and Traps (all five semantic traps have recorded cases). Returns a per-tier verdict. Inspiration: rust-anything (MIT).

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": "migrate_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
mvnNoMaven command (default: project mvnw wrapper, else JAVABYTES_MVN, else 'mvn')
testNoReplay test class for the Gate tier, e.g. StoreReplayTest (omit to run the Prove tier only)
casesNoOptional .jsonl cases file for the Traps tier (trap coverage evidence)
projectNoGenerated Maven project root (must contain pom.xml)
timeout_secondsNoPer-Maven-run timeout in seconds (default 600)

Output Schema

NameRequiredDescriptionDefault
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (which only say local, idempotent, non-destructive), the description discloses that real Maven commands are executed and states the hard pass criterion (100% of recorded cases must replay) plus a per-tier verdict return. It omits practical caveats such as build artifacts being written or long runtimes, which the timeout parameter only hints at.

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 action and the three tiers, and the return value is stated early. The trailing 'Inspiration: rust-anything (MIT)' attribution and stacked parentheticals add length without helping an agent decide or invoke.

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?

An output schema exists so return values need no explanation, and defaults live in the schema. What is missing is prerequisite/ordering context: that the project must already be generated and ported, and that the tiers are ordered dependencies rather than independent options.

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 coverage is 100% and each parameter is already documented, so the baseline is 3. The description adds only indirect meaning - the ReplayTest sentence maps to the test parameter and the traps sentence maps to cases - without specifying formats or defaults beyond the schema.

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?

Specific verb plus resource: runs a tiered gate on a generated Maven project, and it enumerates the three tiers with their concrete commands (test-compile, ReplayTest with 100% replay, five semantic traps). An agent can distinguish this build-verification tool from siblings like migrate_replay or migrate_report 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?

The target condition is stated - a generated Maven project - and the tier semantics imply this runs after porting. It does not name alternatives or say when not to use it (e.g., how it differs from migrate_replay), so guidance is clear but not exhaustive.

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