Skip to main content
Glama

MinecraftWiki_getPageContent

Retrieve raw wikitext content from the Minecraft Wiki for specific pages to access detailed information and technical data.

Instructions

Get the raw wikitext content of a specific Minecraft Wiki page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the Minecraft Wiki page to retrieve the raw wikitext content for.

Implementation Reference

  • The core handler function that fetches raw wikitext content from the Minecraft Wiki API (action=parse&prop=wikitext), sanitizes it using sanitizeWikiContent, and returns JSON with title and content.
    async getPageContent(title: string): Promise<string> {
      const response = await apiService.get<WikiResponse, Record<string, unknown>>("", {
        action: "parse",
        page: title,
        prop: "wikitext",
      });
    
      const content = response.parse?.wikitext?.["*"];
    
      if (!content) {
        throw new Error(`No content found for page "${title}"`);
      }
    
      return JSON.stringify({
        title: formatMCPText(title),
        content: sanitizeWikiContent(content),
      });
    }
  • src/server.ts:98-104 (registration)
    Registers the tool in the MCP server's CallToolRequestSchema handler by matching the tool name, validating arguments with isGetPageContentArgs guard, and delegating to wikiService.getPageContent.
    case GET_PAGE_CONTENT_MINECRAFTWIKI_TOOL.name: {
      if (!isGetPageContentArgs(args)) {
        throw new Error("Invalid arguments for getPageContent");
      }
      const content = await wikiService.getPageContent(args.title);
      return { content: [{ type: "text", text: content }] };
    }
  • Defines the Tool object with name, description, and inputSchema requiring a 'title' string parameter.
    export const GET_PAGE_CONTENT_MINECRAFTWIKI_TOOL: Tool = {
      name: "MinecraftWiki_getPageContent",
      description: "Get the raw wikitext content of a specific Minecraft Wiki page.",
      inputSchema: {
        type: "object",
        properties: {
          title: {
            type: "string",
            description: "Title of the Minecraft Wiki page to retrieve the raw wikitext content for.",
          },
        },
        required: ["title"],
      },
    };
  • Type guard function used to validate input arguments match { title: string } before calling the handler.
    export function isGetPageContentArgs(args: unknown): args is { title: string } {
      return (
        typeof args === "object" &&
        args !== null &&
        "title" in args &&
        typeof (args as { title: string }).title === "string"
      );
    }
  • Utility function called by the handler to sanitize wiki content by removing HTML tags, decoding Unicode escapes, and formatting for MCP compatibility.
    export function sanitizeWikiContent(text: string): string {
      return formatMCPText(
        // First decode any Unicode escapes
        decodeUnicodeEscapes(
          // Remove HTML tags
          text.replace(/<[^>]*>/g, " ")
        )
      );
    }
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. It mentions retrieving 'raw wikitext content,' which hints at read-only behavior, but does not disclose critical details like rate limits, authentication needs, error handling, or the format of the returned content (e.g., plain text, structured data). This leaves significant behavioral gaps 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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and wastes no space, making it easy for an agent to parse quickly.

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 low complexity (single parameter, no output schema, no annotations), the description is minimally complete. It covers the basic purpose but lacks details on behavioral aspects like response format or error conditions, which are important for an agent to use the tool effectively. It meets the minimum viable threshold but has clear gaps.

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, clearly documenting the single 'title' parameter. The description adds no additional parameter semantics beyond what the schema provides, such as examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the description does not compensate but also does not detract.

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 specific action ('Get') and resource ('raw wikitext content of a specific Minecraft Wiki page'), distinguishing it from siblings like getPageSummary (which likely provides processed content) or getPageSection (which retrieves only part of a page). It precisely communicates what the tool does without redundancy.

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 raw wikitext, but does not explicitly state when to use this tool versus alternatives like getPageSummary (for summaries) or getPageSection (for specific sections). It provides clear context but lacks explicit guidance on exclusions or named alternatives.

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