Skip to main content
Glama

MinecraftWiki_getPageSummary

Retrieve a page summary and section list from the Minecraft Wiki to identify which specific section to access next for detailed information.

Instructions

Step 2 of the recommended workflow: After finding a page through search, use this to get both the page summary AND a list of all available sections. This helps determine which specific section to retrieve next using getPageSection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the Minecraft Wiki page

Implementation Reference

  • The main handler function that fetches the main content (section 0) as a summary and lists all sections for the given Minecraft Wiki page title.
    async getPageSummary(title: string): Promise<string> {
      try {
        const section0 = await this.getPageSection(title, 0);
        const sections = await this.getSectionsInPage(title);
    
        // Parse the section0 content
        let section0Content = "";
        try {
          const parsed = JSON.parse(section0);
          section0Content = parsed.content || "";
        } catch {
          section0Content = section0;
        }
    
        return JSON.stringify({
          title: formatMCPText(title),
          summary: formatMCPText(section0Content).substring(0, 200),
          sections: JSON.parse(sections).sections || [],
        });
      } catch (error) {
        return JSON.stringify({
          title: formatMCPText(title),
          error: error instanceof Error ? error.message : "Unknown error",
          summary: "",
          sections: [],
        });
      }
    }
  • Defines the tool's schema including name, description, and input schema requiring a 'title' string.
    export const GET_PAGE_SUMMARY_MINECRAFTWIKI_TOOL: Tool = {
      name: "MinecraftWiki_getPageSummary",
      description:
        "Step 2 of the recommended workflow: After finding a page through search, use this to get both the page summary AND a list of all available sections. This helps determine which specific section to retrieve next using getPageSection.",
      inputSchema: {
        type: "object",
        properties: {
          title: {
            type: "string",
            description: "Title of the Minecraft Wiki page",
          },
        },
        required: ["title"],
      },
    };
  • src/server.ts:138-144 (registration)
    Registers the tool in the MCP CallToolRequestHandler by matching the tool name and invoking the wikiService.getPageSummary handler.
    case GET_PAGE_SUMMARY_MINECRAFTWIKI_TOOL.name: {
      if (!isGetPageSummaryArgs(args)) {
        throw new Error("Invalid arguments for getPageSummary");
      }
      const results = await wikiService.getPageSummary(args.title);
      return { content: [{ type: "text", text: results }] };
    }
  • src/server.ts:52-52 (registration)
    Includes the tool in the list returned by ListToolsRequestHandler.
    GET_PAGE_SUMMARY_MINECRAFTWIKI_TOOL,
  • Type guard for validating input arguments to the tool, ensuring 'title' is a string.
    export function isGetPageSummaryArgs(args: unknown): args is { title: string } {
      return (
        typeof args === "object" &&
        args !== null &&
        "title" in args &&
        typeof (args as { title: string }).title === "string"
      );
    }
Behavior3/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 mentions the tool returns 'both the page summary AND a list of all available sections,' which adds useful context about output structure. However, it doesn't cover potential errors (e.g., invalid page titles), rate limits, or authentication needs. For a tool with zero annotation coverage, this is adequate but lacks depth on operational behavior.

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 two sentences, front-loaded with the core purpose and workflow role. Every sentence earns its place: the first explains what the tool does and its position in the workflow, and the second clarifies the next step. There is no redundant or vague language, making it highly efficient and well-structured.

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 moderate complexity (single parameter, no output schema, no annotations), the description is largely complete. It explains the purpose, usage context, and output components (summary and sections). However, without an output schema, it could benefit from more detail on return format (e.g., structure of the section list). Overall, it covers essential context but has a minor gap in output specification.

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 description coverage is 100%, with the single parameter 'title' documented as 'Title of the Minecraft Wiki page.' The description doesn't add any parameter-specific details beyond what the schema provides, such as formatting requirements or examples. Since the schema fully covers the parameter, the baseline score of 3 is appropriate—no extra value is added, but no gap exists.

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 both the page summary AND a list of all available sections') and resource ('Minecraft Wiki page'), distinguishing it from siblings like getPageSection (retrieves specific section) and getPageContent (likely full content). It explicitly positions this as 'Step 2 of the recommended workflow' after search, making the purpose highly specific and differentiated.

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 ('After finding a page through search') and why ('helps determine which specific section to retrieve next using getPageSection'). It names the alternative tool (getPageSection) and clarifies the workflow sequence, offering comprehensive usage context that prevents confusion with similar tools.

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