Skip to main content
Glama

Check a dependency upgrade

check_dependency_upgrade
Read-only

Find the file:line locations a Maven or Android dependency upgrade would break, and check whether the new version raises minSdk. Run it before changing versions or reviewing update bots.

Instructions

Lists the places in this project (file:line) that break if a Maven dependency moves to another version: removed or changed methods, fields and classes it calls, extends or overrides, from the project's compiled classes, and counts the dependency's breaking changes the project does not use. For an Android library (AAR) it also reports when the new version raises minSdk above this project's. Build the project first (the way it is usually built). Call it before changing a dependency's version, or to review a Dependabot or Renovate update.

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": {
      "dependency": "<dependency>"
    },
    "name": "check_dependency_upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe version to move to. Optional: its latest release.
fromNoThe version the project uses now. Optional: read from pom.xml, build.gradle(.kts) or gradle/libs.versions.toml.
currentNoThe project's compiled classes: folders or jars. Optional: found in target/ or build/ (every module's output in a multi-module build).
projectNoFolder of the project or module (with its pom.xml or build.gradle). Optional: defaults to the folder the server was started in. Relative paths are resolved against it.
dependencyYesThe dependency to upgrade, GROUP:ARTIFACT (e.g. com.squareup.okhttp3:okhttp).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

A3.9/5.0
Behavior4/5

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

With readOnlyHint and openWorldHint already declared, the description still adds real behavioral context: it reads the project's compiled classes, distinguishes breaking changes the project uses from unused ones, adds an AAR-only minSdk check, and requires a prior build. It does not cover failure modes, such as what happens when the build output is missing or the version cannot be resolved.

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 description is front-loaded with the core outcome and packs useful detail into three dense sentences. The long first sentence carries a lot of clauses but each one adds relevant scope rather than filler.

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 five-parameter analysis tool with no output schema, the description explains what the result contains (file:line breakages, unused change count, minSdk regression) and the key prerequisite to build first. It is nearly complete, though it omits behavior when inputs are missing or resolution fails.

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 every parameter including dependency, from, to, current and project is already documented in the schema. The description hints at the relationship between the project's compiled classes and the current parameter but adds no format, resolution, or default details beyond the schema. Baseline 3 is appropriate.

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?

The description names a specific verb and resource: it lists the file:line locations that break when a Maven dependency version changes, including removed/changed methods, fields and classes, plus an unused-breaking-changes count and Android minSdk checks. This is concrete and unambiguous. It does not differentiate itself explicitly from the sibling check_api_compatibility, which keeps it from a 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?

It gives clear when-to-use guidance: call it before changing a dependency version or when reviewing Dependabot/Renovate updates, and it states the prerequisite that the project must be built first. What is missing is any when-not guidance or an explicit pointer to the sibling check_api_compatibility for the alternative workflow.

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

Deploy Server

Other Tools