Skip to main content
Glama

update_page

Modify and update existing wiki pages on Wizzypedia by providing a title, new content, and optional edit summary through the MCP-enabled Wizzypedia MCP Server.

Instructions

Update an existing wiki page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesNew wiki content for the page
summaryNoEdit summaryUpdated via MCP
titleYesTitle of the page to update

Implementation Reference

  • MCP server tool call handler for 'update_page': destructures input arguments, calls wikiClient.updatePage, and returns formatted JSON response with edit result.
    case "update_page": { const { title, content, summary = "Updated via MCP" } = request.params.arguments as { title: string; content: string; summary?: string; }; const result = await wikiClient.updatePage(title, content, summary); return { content: [ { type: "text", text: JSON.stringify( { title, result: result.edit.result, newRevId: result.edit.newrevid, success: result.edit.result === "Success" }, null, 2 ) } ] }; }
  • Tool schema definition including inputSchema with properties for title, content, summary and required fields.
    const UPDATE_PAGE_TOOL: Tool = { name: "update_page", description: "Update an existing wiki page", inputSchema: { type: "object", properties: { title: { type: "string", description: "Title of the page to update" }, content: { type: "string", description: "New wiki content for the page" }, summary: { type: "string", description: "Edit summary", default: "Updated via MCP" } }, required: ["title", "content"] } };
  • index.ts:598-607 (registration)
    Registration of the update_page tool (UPDATE_PAGE_TOOL) in the MCP server's listTools response.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ SEARCH_PAGES_TOOL, READ_PAGE_TOOL, CREATE_PAGE_TOOL, UPDATE_PAGE_TOOL, GET_PAGE_HISTORY_TOOL, GET_CATEGORIES_TOOL ] }));
  • MediaWikiClient helper method that gets CSRF edit token and makes POST API call to edit/update the page content.
    async updatePage( title: string, content: string, summary: string = "" ): Promise<any> { // Ensure we have an edit token const token = await this.getEditToken(); return this.makeApiCall( { action: "edit", title, text: content, summary, token }, "POST" ); }

Other Tools

Related 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/cryppadotta/mcp-wizzypedia'

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