Skip to main content
Glama

Render a migration report for a ported project

migrate_report
Idempotent

Scan a generated Maven project for recorded cases, ReplayTest sources, and migration gate results, then render MIGRATION-REPORT.md with evidence tables, trap coverage, verdicts, and remaining work.

Instructions

Scan a generated Maven project for recorded cases (cases/.jsonl), generated ReplayTest sources and migrate_gate results (target/migrate-gate-.json), and render MIGRATION-REPORT.md: per-unit evidence table, trap coverage, gate verdicts and honest remaining work. 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_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional report title suffix
projectNoGenerated project directory (contains cases/, optionally src/test/java/**/ReplayTest.java and target/migrate-gate-*.json)
report_pathNoOptional .md output path (default: <project>/MIGRATION-REPORT.md; must end with .md)

Output Schema

NameRequiredDescriptionDefault
errorNo
messageNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, but the description adds real value beyond them: it discloses that it writes a .md file into the project directory, that the default output path is <project>/MIGRATION-REPORT.md, and that the optional inputs (ReplayTest sources, gate JSON) are tolerated when absent. It does not mention overwrite behavior on an existing report, but the idempotent annotation partially covers that.

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?

The core is a single front-loaded sentence that names inputs then outputs, which is efficient. The trailing 'Inspiration: rust-anything (MIT)' line is attribution rather than invocation guidance and slightly dilutes the operational content.

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?

An output schema exists, so return values need not be explained, and the description covers both the scanned inputs and the written report path. The only gap is not stating the expected run order relative to migrate_record and migrate_gate, which matters for an agent assembling a workflow.

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%, so the schema already documents title, project, and report_path, including the .md constraint and default path. The description restates the project directory contents rather than adding new parameter semantics, so the baseline 3 is appropriate.

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 (scan ... and render) with a concrete artifact (MIGRATION-REPORT.md) and enumerates the sections it produces: per-unit evidence table, trap coverage, gate verdicts, remaining work. It also names the exact input artifacts (cases/*.jsonl, ReplayTest.java, target/migrate-gate-*.json), which makes it clearly distinct from migrate_gate, migrate_record, or migrate_replay.

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?

Usage is only implied: the agent can infer this runs after recording cases and running migrate_gate, but nothing states prerequisites or when to prefer this over siblings such as migrate_gate or project_diagnostic. There are no explicit exclusions or alternative-routing sentences.

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