Skip to main content
Glama
dlang-dub-packages-registry-mcp

dlang-dub-packages-registry-mcp

Get DUB package download and repo stats

get_dub_package_stats
Read-onlyIdempotent

Retrieve download metrics, repository stars, forks, open issues, and registry score for a DUB package by exact name to assess adoption and maintenance.

Instructions

Retrieve download metrics (total, monthly, weekly, daily), repository stars, forks, open issues, and registry score for a DUB package.

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

Input Schema

NameRequiredDescriptionDefault
nameYesExact DUB package name (e.g. "vibe-d").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds the granularity of returned metrics but says nothing about behavior an agent would want: rate limits on external registry/GitHub lookups (openWorldHint implies network calls), caching, or what happens for a package whose repo is missing or nonexistent.

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 with no filler; the verb comes first and every listed item is information an agent needs to judge relevance. Nothing is redundant with the title in a wasteful way.

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 one required parameter, full annotation coverage, and no output schema, the description does the important extra work of enumerating the returned fields, which the absent output schema cannot supply. Minor gap: no note on failure modes for invalid package names or packages without a repository.

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?

Only one parameter and schema description coverage is 100%, with the schema already stating 'Exact DUB package name (e.g. "vibe-d")'. The description's mention of 'a DUB package' adds no syntax or matching guidance beyond the schema, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb (Retrieve) and a precisely enumerated resource: download metrics at four granularities, stars, forks, open issues, and registry score. That enumeration makes it clearly distinct from get_dub_package_info, get_dub_package_latest_version, list_dub_package_versions, and search_dub_packages without needing the schema.

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 content: an agent can infer this is the tool to call when download/repo popularity or health data is wanted. There is no explicit when-to-use, no prerequisite notes, and no exclusions such as pointing to get_dub_package_info for plain metadata or latest_version for a single version.

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