Skip to main content
Glama

validate_all_seo

Run SEO analysis using PageSpeed Insights to validate website optimization for search engines through automated testing.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes

Implementation Reference

  • Core handler function implementing validate_all_seo tool logic by running PageSpeed Insights SEO analysis.
    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; }
  • MCP server dispatcher handler that validates input and delegates to runAllSEO.
    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) }] }; }
  • index.ts:260-270 (registration)
    Tool registration definition including 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'], }, },
  • Zod schema used for input argument validation in the tool handler.
    const AllSEOArgsSchema = z.object({ url: z.string().url(), });
  • TypeScript interface defining the output structure of the SEO validation 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