Skip to main content
Glama

Maven Central Java Ecosystem MCP

Get latest Maven artifact coordinates

get_latest_artifact_coords
Read-onlyIdempotent

Resolve the latest Maven Central version and generate Maven XML, Gradle Kotlin, Gradle Groovy, and SBT snippets.

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": {
      "group_id": "<group_id>",
      "artifact_id": "<artifact_id>"
    },
    "name": "get_latest_artifact_coords"
  }
}

Input Schema

NameRequiredDescriptionDefault
group_idYesMaven groupId (e.g. "com.google.guava").
artifact_idYesMaven artifactId (e.g. "guava").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: the lookup targets Maven Central and the result includes ready-to-paste snippets in four distinct build-tool dialects, which is important behavior since there is no output schema. It does not say what happens if the artifact is missing or how 'latest' is chosen (release vs. snapshot).

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?

A single front-loaded sentence that leads with the primary action and enumerates the output formats compactly. No filler, no repetition of the title, and nothing an agent must skim past.

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?

With no output schema, the description must convey the return shape, and it does by naming all four snippet formats plus the resolved version. The only material gap is lack of detail on version-selection semantics and failure behavior, which matters for an open-world network lookup.

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%, with both group_id and artifact_id documented with examples, so the baseline is 3. The description adds no extra meaning about parameter format, casing, or identifier conventions beyond what the schema already supplies.

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 ('Resolve') and resource ('latest Maven Central version') plus a secondary action (generating build-tool snippets), which distinguishes it from sibling get_artifact_versions (which lists versions rather than resolving the latest). It stops short of explicitly contrasting with siblings, but an agent can infer the role from 'latest' and the snippet-generation output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'latest' signals this is the tool for picking a current dependency version, and the snippet formats hint at its consumer-facing purpose. There is no explicit when-to-use/when-not-to-use guidance or named alternative (e.g. pointing to get_artifact_versions for full version history).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.