Skip to main content
Glama

migration_guide

Compare two indexed library versions to see added, removed, and changed symbols with signature diffs. Index both versions first, then use it to plan upgrades and fix breaking API changes.

Instructions

Compares two indexed versions of a library. Returns symbols added, removed, and changed with signature diffs. Both versions must be indexed via index_library_source first.

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": {
      "package": "<package>",
      "from_version": "<from_version>",
      "to_version": "<to_version>"
    },
    "name": "migration_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name without manager prefix (e.g., 'numpy', 'react')
to_versionYesThe new version to compare to (e.g., '2.2.2')
from_versionYesThe old version to compare from (e.g., '1.1.1')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the output contents and the indexing prerequisite, which is real value, but does not state that this is a non-mutating comparison, what happens if one version is not indexed (error vs empty result), or any cost/latency expectations.

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 sentences, no filler. The behavioral promise is front-loaded and the prerequisite follows immediately, so nothing could be removed without losing information.

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 three-parameter read/compare tool with no output schema, the description covers purpose, return contents, and precondition. The only meaningful gap is failure-mode behavior when a version is not indexed, which an agent would likely need.

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 description coverage is 100% and each of the three parameters already carries example-formatted guidance ('numpy', '1.1.1', '2.2.2'). The description adds nothing parameter-specific beyond what the schema provides, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Compares two indexed versions of a library', and further specifies the return shape (symbols added, removed, changed with signature diffs). An agent knows exactly what it gets. However, it does not name or distinguish itself from plausible siblings such as check_version_drift or indexed_libraries, so it stops short of 5.

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 a clear prerequisite: 'Both versions must be indexed via index_library_source first', which tells the agent the correct ordering relative to a sibling tool. It lacks explicit when-not guidance or a direct comparison to check_version_drift, so there is room above.

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