Skip to main content
Glama

Maven Central Java Ecosystem MCP

Search Maven artifacts by Java class name

search_by_class_name
Read-onlyIdempotent

Locate Maven Central artifacts providing a simple class name or fully qualified Java class name.

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": {
      "class_name": "<class_name>"
    },
    "name": "search_by_class_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum artifacts to return (default 15).
class_nameYesSimple or fully qualified class name (e.g. "JUnit" or "com.fasterxml.jackson.databind.ObjectMapper").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds essentially nothing beyond that: it does not say whether matching is exact, prefix, or partial, whether it searches inside JARs, or how results are ordered — behavior that matters greatly for a search tool.

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?

A single front-loaded sentence with no filler, and the key qualifier (simple or fully qualified class name) comes immediately. It is efficient, though arguably under-sized for a search tool whose matching semantics are non-obvious.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only search with full schema coverage and rich annotations, the essentials are present. However, the one thing an agent genuinely needs to know for this class of tool — how the class name is matched and what the results look like — is absent, and there is no output schema to cover the return side.

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 the schema already supplies both parameter descriptions with examples ("JUnit" vs "com.fasterxml.jackson.databind.ObjectMapper") plus the limit range and default. The description adds no meaning beyond the schema, so the 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 ("Locate") and resource ("Maven Central artifacts") with the discriminating constraint "providing a simple class name or fully qualified Java class name," which clearly separates it from search_maven_artifacts and search_by_group_id. It does not name those siblings explicitly, but the query dimension it operates on is unmistakable.

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 only implied by the search key: use it when you know a class name but not the coordinates. There is no statement of when to prefer search_maven_artifacts or search_by_group_id, and no prerequisites or exclusions are given.

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.