Skip to main content
Glama

summarize_website

Extract and condense website content into concise summaries using AI. Customize output format, length, and processing parameters for efficient web information review.

Instructions

Summarize a website (and its internal links) using AI via ReviewWeb.site API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoYour ReviewWebsite API key
debugNoEnable debug mode for detailed logging
delayAfterLoadNoOptional delay after page load in milliseconds
formatNoFormat of the summary (bullet points or paragraph)
instructionsNoCustom instructions for the AI on how to summarize the content
maxLengthNoMaximum length of the summary in words
maxLinksNoMaximum number of pages to process
modelNoAI model to use for summarization
systemPromptNoCustom system prompt to guide the AI
urlYesThe main URL of the website to summarize

Implementation Reference

  • The MCP tool handler function that implements the core logic for the 'summarize_website' tool. It processes arguments, calls the ReviewWebsite controller's summarizeWebsite method, formats the response for MCP, and handles errors.
    async function handleSummarizeWebsite(args: SummarizeWebsiteToolArgsType) { const methodLogger = Logger.forContext( 'tools/reviewwebsite.tool.ts', 'handleSummarizeWebsite', ); methodLogger.debug(`Summarizing website with options:`, { ...args, api_key: args.api_key ? '[REDACTED]' : undefined, }); try { const result = await reviewWebsiteController.summarizeWebsite( args.url, { instructions: args.instructions, systemPrompt: args.systemPrompt, model: args.model, delayAfterLoad: args.delayAfterLoad, maxLinks: args.maxLinks, maxLength: args.maxLength, format: args.format, debug: args.debug, }, { api_key: args.api_key, }, ); return { content: [ { type: 'text' as const, text: result.content, }, ], }; } catch (error) { methodLogger.error(`Error summarizing website`, error); return formatErrorForMcpTool(error); } }
  • The registration of the 'summarize_website' tool with the MCP server, specifying name, description, input schema, and handler function.
    server.tool( 'summarize_website', `Summarize a website (and its internal links) using AI via ReviewWeb.site API.`, SummarizeWebsiteToolArgs.shape, handleSummarizeWebsite, );
  • Zod schema defining the input arguments for the 'summarize_website' tool, including URL, instructions, model options, limits, and API key.
    export const SummarizeWebsiteToolArgs = z.object({ url: z.string().describe('The main URL of the website to summarize'), instructions: z .string() .optional() .describe( 'Custom instructions for the AI on how to summarize the content', ), systemPrompt: z .string() .optional() .describe('Custom system prompt to guide the AI'), model: z.string().optional().describe('AI model to use for summarization'), delayAfterLoad: z .number() .optional() .describe('Optional delay after page load in milliseconds'), maxLinks: z .number() .optional() .describe('Maximum number of pages to process'), maxLength: z .number() .optional() .describe('Maximum length of the summary in words'), format: z .enum(['bullet', 'paragraph']) .optional() .describe('Format of the summary (bullet points or paragraph)'), debug: z .boolean() .optional() .describe('Enable debug mode for detailed logging'), api_key: z.string().optional().describe('Your ReviewWebsite API key'), });

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/mrgoonie/reviewwebsite-mcp-server'

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