fandom_user_contributions
Retrieve user contributions from Fandom to analyze editing patterns and activity history for OSINT investigations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Fandom username | |
| limit | No | Number of contributions to return |
Implementation Reference
- src/index.ts:424-436 (registration)Registration of the 'fandom_user_contributions' tool in the MCP server setup.
server.tool( "fandom_user_contributions", { username: z.string().describe("Fandom username"), limit: z.number().optional().default(50).describe("Number of contributions to return"), }, async ({ username, limit }) => { const result = await fandomClient.getUserContributions(username, limit); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; } ); - src/tools/fandom.ts:31-48 (handler)Actual implementation of the 'getUserContributions' method within the FandomApiClient class.
async getUserContributions(username: string, limit: number = 50): Promise<any[]> { try { const data = await this.fetch<any>("", { method: "GET", }, { action: "query", list: "usercontribs", ucuser: username, uclimit: limit, format: "json", }); return data.query?.usercontribs || []; } catch (error) { if (error instanceof McpError) throw error; throw new McpError(ErrorCode.InternalError, `Fandom Contributions error: ${(error as Error).message}`); } }