Skip to main content
Glama

D Language DUB Package Registry MCP

Search D language DUB packages

search_dub_packages
Read-onlyIdempotent

Search the official D language DUB package registry by keyword to discover libraries, tools, and latest versions.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum packages to return (default 20).
queryYesSearch keyword (e.g. "vibe", "http", "mir", "json").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/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 and side-effect profile is covered. The description usefully adds that the registry is the official DUB one (authoritative, network-backed), but says nothing about result ordering, pagination, or truncation beyond the schema limit.

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 the resource and mechanism stated before the purpose clause; no filler, no repetition of the title verbatim.

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 only two fully described parameters and complete annotations, little more is needed. Since no output schema exists, the definition should ideally say what a match looks like (name, description, version), but the phrase "libraries, tools, and latest versions" gives a partial hint.

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 both the query keyword and the limit parameter are fully documented in the schema, including defaults and bounds. The description only restates the keyword dimension and adds no format, syntax, or ranking details beyond that.

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 ("Search") and resource ("the official D language DUB package registry") plus the matching mechanism ("by keyword"). This implicitly separates it from the get_/list_ siblings, which presumably fetch known packages, but it never says so explicitly.

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?

"to discover libraries, tools, and latest versions" implies the discovery scenario, so an agent can infer this is the entry point when it does not yet know a package name. There is no explicit when-not guidance or reference to the sibling tools for known-name lookups.

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.