Skip to main content
Glama

Get Migration Guide

gt_migration
Read-onlyIdempotent

Generate an upgrade guide between two library versions, detailing breaking changes and required code changes to migrate safely.

Instructions

Upgrade guide between two versions of a library: breaking changes and required code changes. Release notes only: gt_changelog.

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": {
      "libraryId": "<libraryId>"
    },
    "name": "gt_migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensNo
libraryIdYesPlain name or GroundTruth ID, e.g. 'nextjs'
toVersionNoe.g. '16'
fromVersionNoe.g. '15'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv8.1.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / fromVersion / description
      Previous value: -"Version migrating from, e.g. '14', 'v3.0'"New value: +"e.g. '15'"
    • changedInput schema / properties / libraryId / description
      Previous value: -"Library ID from gt_resolve_library (e.g. 'vercel/next.js')"New value: +"Plain name or GroundTruth ID, e.g. 'nextjs'"
    • changedInput schema / properties / toVersion / description
      Previous value: -"Version migrating to, e.g. '15', 'v4.0'"New value: +"e.g. '16'"
    • removedInput schema / properties / tokens / description
      Removed value: -"Max tokens to return"
  2. First observedv5.2.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds content scope (breaking changes, code-level deltas) but says nothing about whether the guide is truncated by the tokens budget or what happens when fromVersion is omitted.

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?

Two short sentences, front-loaded with the resource definition and finished with the disambiguation. No filler whatsoever.

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 read-only retrieval tool with no output schema, the description covers purpose and routing adequately. The remaining gap is behavioral: the effect of the tokens parameter and of omitting one of the version parameters is left unexplained.

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 75%, so most parameters are documented in the schema already. The phrase 'between two versions' implies the paired fromVersion/toVersion parameters, but nothing explains the tokens budget (default 8000, max 20000) or libraryId resolution behavior beyond what the schema states.

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 the exact resource returned – an upgrade guide between two library versions covering breaking changes and required code changes – and explicitly separates it from gt_changelog ('Release notes only'). An agent can pick between the two without opening either 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 negative routing rule: release notes belong to gt_changelog, not here. It omits any guidance on when this beats gt_compat, gt_best_practices, or gt_get_docs, and states no prerequisites (e.g., whether both versions must be known in advance).

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