Skip to main content
Glama

MinecraftWiki_searchWiki

Search the Minecraft Wiki for specific structures, entities, items, or blocks to find information quickly. Use basic search terms for best results, then access detailed content through related tools.

Instructions

Search the Minecraft Wiki for a specific structure, entity, item or block. NOTE: Only use for basic search terms like item/block/structure/entity names - complex queries (like 'loot table of X' or 'how to craft Y') will not work. For best results: 1. Search for the basic entity/structure/etc name first, 2. Then use getPageSummary to see available sections, 3. Finally use getPageSection to get specific section content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch term to find on the Minecraft Wiki.

Implementation Reference

  • Core implementation of the MinecraftWiki_searchWiki tool: performs MediaWiki API search query and returns formatted JSON results.
    async searchWiki(query: string): Promise<string> {
      const response = await apiService.get<WikiResponse, Record<string, unknown>>("", {
        action: "query",
        list: "search",
        srsearch: query,
      });
    
      const results = response.query?.search;
    
      if (!results?.length) {
        return JSON.stringify({ results: [] });
      }
    
      // Return JSON-formatted results
      return createJsonSearchResult(results);
    }
  • Static schema definition for the tool, including name, description, and input validation schema.
    export const SEARCH_WIKI_MINECRAFTWIKI_TOOL: Tool = {
      name: "MinecraftWiki_searchWiki",
      description:
        "Search the Minecraft Wiki for a specific structure, entity, item or block. NOTE: Only use for basic search terms like item/block/structure/entity names - complex queries (like 'loot table of X' or 'how to craft Y') will not work. For best results: 1. Search for the basic entity/structure/etc name first, 2. Then use getPageSummary to see available sections, 3. Finally use getPageSection to get specific section content.",
      inputSchema: {
        type: "object",
        properties: {
          query: {
            type: "string",
            description: "Search term to find on the Minecraft Wiki.",
          },
        },
        required: ["query"],
      },
    };
  • src/server.ts:74-80 (registration)
    MCP server registration: handles CallToolRequest for this tool by validating args with guard and delegating to wikiService.searchWiki.
    case SEARCH_WIKI_MINECRAFTWIKI_TOOL.name: {
      if (!isSearchWikiArgs(args)) {
        throw new Error("Invalid arguments for searchWiki");
      }
      const results = await wikiService.searchWiki(args.query);
      return { content: [{ type: "text", text: results }] };
    }
  • src/server.ts:51-51 (registration)
    Tool is included in the list returned by ListToolsRequest for discovery.
    SEARCH_WIKI_MINECRAFTWIKI_TOOL,
  • Utility function used by the handler to format search results into JSON compatible with MCP.
    export function createJsonSearchResult(results: Array<{ title: string; snippet: string }>): string {
      if (!results || !results.length) return JSON.stringify({ results: [] });
    
      const formattedResults = results.map((item, index) => ({
        resultId: index + 1,
        title: formatMCPText(item.title),
        snippet: formatMCPText(item.snippet || "").substring(0, 100),
      }));
    
      return JSON.stringify({ results: formattedResults });
    }
Behavior4/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 effectively describes key behavioral traits: the tool's limitations (complex queries won't work), best practices for usage (search for basic names first), and its role in a multi-step workflow. However, it doesn't cover aspects like rate limits, error handling, or response format details, which could be useful for an agent.

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 well-structured and concise, with three sentences that each serve a clear purpose: stating the tool's function, outlining limitations, and providing a usage workflow. It is front-loaded with the core purpose and avoids unnecessary details, making it efficient for an agent to parse.

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?

Given the tool's complexity (a search function with one parameter) and the absence of annotations and output schema, the description is largely complete. It covers purpose, usage guidelines, and behavioral constraints effectively. However, it lacks details on the response format (e.g., what the search returns) and error cases, which could enhance completeness for an agent.

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 schema description coverage is 100%, with the parameter 'query' clearly documented as a search term. The description adds semantic context by specifying what types of queries work best (basic entity/structure/etc names) and what doesn't (complex queries), but doesn't provide additional syntax or format details beyond what the schema already states. This meets the baseline for high schema coverage.

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 tool's purpose as searching the Minecraft Wiki for specific types of content (structures, entities, items, or blocks). It uses the specific verb 'search' with the resource 'Minecraft Wiki' and distinguishes itself from sibling tools like getPageSummary and getPageSection by being the entry point for basic searches.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool (for basic search terms like item/block/structure/entity names) and when not to use it (for complex queries like 'loot table of X' or 'how to craft Y'). It also outlines a workflow with alternatives, directing users to first use this tool, then getPageSummary, and finally getPageSection for specific content.

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