Skip to main content
Glama

cs_migrate

Generates an ordered migration plan from app analysis output, returning step-by-step instructions only and leaving files unchanged.

Instructions

Migration workflow step 2. Generates an ordered migration plan from cs_analyze output. Call with the output of cs_analyze. Returns instructions only — does NOT modify files. Input: { analysis: object } (output of cs_analyze) Output: { do_not_change: string[], steps: [...] }

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": {
      "analysis": "<analysis>"
    },
    "name": "cs_migrate"
  }
}

Input Schema

NameRequiredDescriptionDefault
analysisYesOutput object from cs_analyze tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on the highest-risk trait: it explicitly says "Returns instructions only — does NOT modify files," preventing an agent from assuming mutation. It does not cover other behavioral traits such as whether the analysis object must come verbatim or whether output steps are stable between runs.

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, front-loaded lines: role, action, safety disclaimer, then Input/Output contract. Every clause carries information and nothing is 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?

No output schema exists, but the description supplies the return shape (do_not_change plus steps) and the pass-through input contract, which is enough to call it correctly. The one residual gap is that the nested analysis object's expected contents are only defined by reference to another tool.

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?

There is one parameter at 100% schema description coverage, and the description only restates what the schema already says (the analysis object from cs_analyze). No added detail on required shape or handling of a stale or partial analysis object, so baseline 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 and product ("Generates an ordered migration plan") and situates it as step 2 of a migration workflow whose input is cs_analyze output. An agent can tell this apart from the analysis-producing and scaffolding tools without opening a 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?

Gives an explicit calling precondition ("Call with the output of cs_analyze") and makes clear the tool is a planning-only step, not an executor. It stops short of naming when-not-to-use conditions or what follows in the sequence, so it is clear context rather than full routing guidance.

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