Skip to main content
Glama

MCP-IQWiki

by IQAIcom
get-user-created-wikis.ts•1.12 kB
import { z } from "zod"; import { GetUserCreatedWikisService } from "../services/get-user-created-wikis.js"; const getUserCreatedWikisParams = z.object({ id: z.string().min(1).describe("The Ethereum address of the user"), timeFrameSeconds: z .number() .optional() .describe("Optional time frame in seconds to filter results"), }); type GetUserCreatedWikisParams = z.infer<typeof getUserCreatedWikisParams>; export const getUserCreatedWikisTool = { name: "GET_USER_CREATED_WIKIS", description: "Get wikis created by a specific user on IQ.wiki", parameters: getUserCreatedWikisParams, execute: async (params: GetUserCreatedWikisParams) => { try { const service = new GetUserCreatedWikisService(); const wikis = await service.execute(params.id, params.timeFrameSeconds); return service.format(wikis); } catch (error) { if (error instanceof Error) { console.log(`Error in GET_USER_CREATED_WIKIS tool: ${error.message}`); return `Error retrieving user created wikis: ${error.message}`; } return "An unknown error occurred while fetching user created wikis"; } }, } as const;

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/IQAIcom/mcp-iqwiki'

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