Skip to main content
Glama

MinecraftWiki_listCategoryMembers

Retrieve pages from specific Minecraft Wiki categories like Items, Blocks, or Entities to organize information and support research.

Instructions

List all pages that are members of a specific category on the Minecraft Wiki.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYesThe name of the category to list members from (e.g., 'Items', 'Blocks', 'Entities', 'Structure Blueprints').
limitNoThe maximum number of pages to return (default: 100, max: 500).

Implementation Reference

  • The handler function `listCategoryMembers` in WikiService that performs the API call to list members of a Minecraft Wiki category and returns formatted JSON results.
    async listCategoryMembers(category: string, limit: number = 100): Promise<string> {
      const response = await apiService.get<WikiResponse, Record<string, unknown>>("", {
        action: "query",
        list: "categorymembers",
        cmtitle: `Category:${category}`,
        cmlimit: limit,
      });
    
      const members = response.query?.categorymembers?.map((item) => item.title);
    
      if (!members?.length) {
        return JSON.stringify({
          category: formatMCPText(category),
          members: [],
        });
      }
    
      return JSON.stringify({
        category: formatMCPText(category),
        members: members.map((member) => formatMCPText(member)),
      });
    }
  • The Tool schema definition for MinecraftWiki_listCategoryMembers, including name, description, and input schema.
    export const LIST_CATEGORY_MEMBERS_MINECRAFTWIKI_TOOL: Tool = {
      name: "MinecraftWiki_listCategoryMembers",
      description: "List all pages that are members of a specific category on the Minecraft Wiki.",
      inputSchema: {
        type: "object",
        properties: {
          category: {
            type: "string",
            description:
              "The name of the category to list members from (e.g., 'Items', 'Blocks', 'Entities', 'Structure Blueprints').",
          },
          limit: {
            type: "number",
            description: "The maximum number of pages to return (default: 100, max: 500).",
          },
        },
        required: ["category"],
      },
    };
  • src/server.ts:90-96 (registration)
    Tool registration in the MCP server's CallToolRequestSchema handler switch statement, dispatching to the wikiService handler.
    case LIST_CATEGORY_MEMBERS_MINECRAFTWIKI_TOOL.name: {
      if (!isListCategoryMembersArgs(args)) {
        throw new Error("Invalid arguments for listCategoryMembers");
      }
      const results = await wikiService.listCategoryMembers(args.category, args.limit);
      return { content: [{ type: "text", text: results }] };
    }
  • src/server.ts:50-60 (registration)
    Tool listed in the ListToolsRequestSchema handler response, making it discoverable.
    tools: [
      SEARCH_WIKI_MINECRAFTWIKI_TOOL,
      GET_PAGE_SUMMARY_MINECRAFTWIKI_TOOL,
      GET_SECTIONS_IN_PAGE_MINECRAFTWIKI_TOOL,
      GET_PAGE_SECTION_MINECRAFTWIKI_TOOL,
      GET_PAGE_CONTENT_MINECRAFTWIKI_TOOL,
      RESOLVE_REDIRECT_MINECRAFTWIKI_TOOL,
      LIST_CATEGORY_MEMBERS_MINECRAFTWIKI_TOOL,
      LIST_ALL_CATEGORIES_MINECRAFTWIKI_TOOL,
      GET_CATEGORIES_FOR_PAGE_MINECRAFTWIKI_TOOL,
    ],
  • Type guard function `isListCategoryMembersArgs` used to validate input arguments before calling the handler.
    export function isListCategoryMembersArgs(
      args: unknown
    ): args is { category: string; limit?: number } {
      return (
        typeof args === "object" &&
        args !== null &&
        "category" in args &&
        typeof (args as { category: string }).category === "string" &&
        ("limit" in args ? typeof (args as { limit: number }).limit === "number" : true)
      );
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but lacks details on behavioral traits such as pagination, rate limits, error handling (e.g., if the category doesn't exist), or the format of returned data. For a tool with no annotations, this leaves significant gaps in understanding how it behaves beyond basic functionality.

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?

The description is a single, well-structured sentence that efficiently conveys the tool's purpose without unnecessary words. It is front-loaded with the core action ('List all pages') and specifies the context ('members of a specific category on the Minecraft Wiki'), making it easy to understand quickly. Every part of the sentence earns its place.

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?

Given the tool's moderate complexity (listing category members with parameters), no annotations, and no output schema, the description is minimally adequate. It covers the basic purpose but lacks details on behavioral aspects, output format, or error handling. For a tool with no structured output information, the description should ideally provide more context about what is returned, but it meets the minimum viable threshold.

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?

The input schema has 100% description coverage, with clear documentation for both parameters ('category' and 'limit'), including examples and defaults. The description does not add any additional meaning beyond what the schema provides, such as explaining parameter interactions or edge cases. Given the high schema coverage, a baseline score of 3 is appropriate as the schema handles the heavy lifting.

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 the verb ('List all pages') and resource ('members of a specific category on the Minecraft Wiki'), making the purpose specific and unambiguous. It distinguishes this tool from siblings like 'MinecraftWiki_listAllCategories' (which lists categories rather than category members) and 'MinecraftWiki_searchWiki' (which performs broader searches).

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?

The description implies usage for retrieving pages within a category but does not explicitly state when to use this tool versus alternatives. For example, it doesn't clarify if this should be used over 'MinecraftWiki_searchWiki' for category-specific queries or mention prerequisites like category existence. Guidance is implied by the tool's name and purpose but not explicitly articulated.

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/L3-N0X/Minecraft-Wiki-MCP'

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