Skip to main content
Glama
Particle-Academy

@particle-academy/docs-mcp

Official

docs_list_packages

Lists available documentation packages from @particle-academy/* and other scanned packages, showing name, version, source, and file count for version-matched docs.

Instructions

List every @particle-academy/* (and other scanned) package that has docs available, with name, version, source (node_modules vs workspace), and file count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for docs_list_packages. It maps over the cached scan results (PackageDocs[]) and returns a formatted list of package names, versions, sources, and file counts. Returns a text result with a line per package, plus structured JSON data.
    () => {
      const rows = cache.map((p) => ({
        name: p.name,
        version: p.version,
        source: p.source,
        fileCount: p.files.length,
      }));
      if (rows.length === 0) {
        return textResult(
          "No packages with docs found. Scan options: " + JSON.stringify(options),
          rows as unknown as JsonObject[],
        );
      }
      const lines = rows.map(
        (r) => `${r.name}@${r.version} (${r.source}) — ${r.fileCount} file${r.fileCount === 1 ? "" : "s"}`,
      );
      return textResult(lines.join("\n"), rows as unknown as JsonObject[]);
    },
  • src/tools.ts:23-48 (registration)
    Registration of the docs_list_packages tool via server.registerTool(). Defines the tool name, description, empty input schema, and binds the handler.
    server.registerTool(
      {
        name: "docs_list_packages",
        description:
          "List every @particle-academy/* (and other scanned) package that has docs available, with name, version, source (node_modules vs workspace), and file count.",
        inputSchema: { type: "object", properties: {} },
      },
      () => {
        const rows = cache.map((p) => ({
          name: p.name,
          version: p.version,
          source: p.source,
          fileCount: p.files.length,
        }));
        if (rows.length === 0) {
          return textResult(
            "No packages with docs found. Scan options: " + JSON.stringify(options),
            rows as unknown as JsonObject[],
          );
        }
        const lines = rows.map(
          (r) => `${r.name}@${r.version} (${r.source}) — ${r.fileCount} file${r.fileCount === 1 ? "" : "s"}`,
        );
        return textResult(lines.join("\n"), rows as unknown as JsonObject[]);
      },
    );
  • Input schema for docs_list_packages: an empty object with no properties, since this tool takes no arguments.
    inputSchema: { type: "object", properties: {} },
  • The registerDocsTools function which creates the scan cache and registers all docs tools. The cache is created via scan() from src/scanner.ts and is used by the docs_list_packages handler.
    export function registerDocsTools(server: McpServer, options: ScanOptions = {}): void {
      let cache: PackageDocs[] = scan(options);
    
      const refresh = () => {
        cache = scan(options);
        return cache;
      };
Behavior3/5

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

No annotations provided. Description lists output fields but lacks behavioral details (e.g., pagination, sorting, auth requirements, side effects). Adequate for a simple list tool but not comprehensive.

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?

Single sentence, no redundancy, efficiently conveys purpose and output.

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?

No output schema, but description specifies output fields. Covers core use case; lacks details on ordering or filtering, but acceptable for a list tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters; schema coverage is 100%. Baseline for 0 parameters is 4, and description correctly omits param info.

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?

The description clearly states 'List every @particle-academy/* (and other scanned) package that has docs available' with specific output fields (name, version, source, file count). It distinguishes from siblings like docs_list (likely lists all docs) by specifying packages.

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

Usage Guidelines4/5

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

Purpose is clear; an agent can infer when to use (when needing a package list). Implicit distinction from siblings, but no explicit when-not or alternatives. Context from sibling names helps.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Particle-Academy/docs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server