check_version_exists
Verify whether a specific Maven artifact version exists in declared repositories, falling back to Maven Central, Google Maven, or Gradle Plugin Portal when none are declared.
Instructions
Check if a specific version of a Maven artifact exists in any repository resolved for the project: declared repositories first, then the public Maven Central / Google Maven / Gradle Plugin Portal fallback when the project declares none (see projectPath).
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": {
"groupId": "<groupId>",
"artifactId": "<artifactId>",
"version": "<version>"
},
"name": "check_version_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Maven group ID | |
| version | Yes | Version to check for existence | |
| artifactId | Yes | Maven artifact ID | |
| projectPath | No | Project root used to resolve declared repositories. Defaults to the current working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exists | Yes | ||
| groupId | Yes | ||
| version | Yes | ||
| stability | No | ||
| artifactId | Yes | ||
| repository | No | ||
| relocatedTo | No | ||
| resolvedFrom | No |