Skip to main content
Glama

setup_seo_optimization

Configure basic SEO settings for Webasyst sites, including robots.txt and sitemap.xml files, to improve search engine visibility.

Instructions

Базовые SEO-настройки (robots/sitemap)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_pathYes
featuresNo
analytics_codesNo
webasyst_pathNo

Implementation Reference

  • The handler function that implements the tool logic: creates basic robots.txt and empty sitemap.xml in the given site_path.
    async function setupSeoOptimizationTool({ site_path, features = [], analytics_codes = {}, webasyst_path }) { const robots = `User-agent: *\nDisallow:\n`; await fs.writeFile(path.join(site_path, 'robots.txt'), robots); await fs.writeFile(path.join(site_path, 'sitemap.xml'), `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n</urlset>\n`); return { content: [{ type: 'text', text: `SEO базовая настройка выполнена в ${site_path}` }] }; }
  • Input schema definition for the tool, specifying parameters like site_path (required), features, analytics_codes, webasyst_path.
    { name: 'setup_seo_optimization', description: 'Базовые SEO-настройки (robots/sitemap)', inputSchema: { type: 'object', properties: { site_path: { type: 'string' }, features: { type: 'array', items: { type: 'string' } }, analytics_codes: { type: 'object' }, webasyst_path: { type: 'string' } }, required: ['site_path'] } }, { name: 'analyze_project', description: 'Проанализировать проект Webasyst', inputSchema: { type: 'object', properties: { project_path: { type: 'string' }, analysis_type: { type: 'string' }, generate_report: { type: 'boolean' } }, required: ['project_path'] } },
  • Registers the tool handler in the CallToolRequest switch statement.
    case 'setup_seo_optimization': return await setupSeoOptimizationTool(args);
  • Adds the tool to the list of available tools returned by ListToolsRequest.
    { name: 'setup_seo_optimization', description: 'Базовые SEO-настройки (robots/sitemap)', inputSchema: { type: 'object', properties: { site_path: { type: 'string' }, features: { type: 'array', items: { type: 'string' } }, analytics_codes: { type: 'object' }, webasyst_path: { type: 'string' } }, required: ['site_path'] } }, { name: 'analyze_project', description: 'Проанализировать проект Webasyst', inputSchema: { type: 'object', properties: { project_path: { type: 'string' }, analysis_type: { type: 'string' }, generate_report: { type: 'boolean' } }, required: ['project_path'] } },

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/emmy-design/webasyst-mcp'

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