Skip to main content
Glama

validate_all_seo

Analyze website SEO performance using PageSpeed Insights and Lighthouse to identify optimization opportunities and improve search visibility.

Instructions

Run SEO analysis using PageSpeed Insights (includes Lighthouse SEO).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • Core handler function implementing the validate_all_seo tool logic by running PageSpeed Insights with SEO category focus.
    export async function runAllSEO(url: string): Promise<AllSEOResult> { const results: AllSEOResult = { url, timestamp: new Date().toISOString(), summary: { tools_run: [], }, }; // Use PageSpeed Insights (includes Lighthouse SEO) const pagespeed = await analyzePageSpeed(url, { categories: ['seo'] }); results.pagespeed_seo = pagespeed; if (pagespeed.success) { results.summary.tools_run.push('pagespeed'); results.summary.seo_score = pagespeed.seo_score; } return results; }
  • index.ts:260-270 (registration)
    Tool registration entry in the MCP tools list, defining name, description, and input schema.
    { name: 'validate_all_seo', description: 'Run SEO analysis using PageSpeed Insights (includes Lighthouse SEO).', inputSchema: { type: 'object', properties: { url: { type: 'string' }, }, required: ['url'], }, },
  • Dispatcher handler case that performs input validation using AllSEOArgsSchema and invokes the runAllSEO implementation.
    case 'validate_all_seo': { const validatedArgs = AllSEOArgsSchema.parse(args); const result = await runAllSEO(validatedArgs.url); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Zod schema for input argument validation (requires URL).
    const AllSEOArgsSchema = z.object({ url: z.string().url(), });
  • TypeScript interface defining the structure of the tool's output result.
    export interface AllSEOResult { url: string; timestamp: string; pagespeed_seo?: PageSpeedResult; summary: { tools_run: string[]; seo_score?: number; }; }

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/cordlesssteve/webby-mcp'

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