Skip to main content
Glama

run_seo_audit

Analyze webpage SEO performance to identify optimization opportunities and improve search visibility.

Instructions

Run an SEO audit on the current page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'run_seo_audit' tool. It evaluates JavaScript in the browser context to check for common SEO issues: title tag, meta description, H1 tags, and canonical link.
    async runSEOAudit() {
      await this.ensureChromium();
      
      const result = await this.sendCDPCommand('Runtime.evaluate', {
        expression: `
          const results = [];
          const title = document.querySelector('title');
          if (!title || title.textContent.trim().length === 0) {
            results.push('Missing or empty title tag');
          } else if (title.textContent.length > 60) {
            results.push('Title tag is too long (>60 characters)');
          }
          
          const metaDesc = document.querySelector('meta[name="description"]');
          if (!metaDesc || metaDesc.getAttribute('content').trim().length === 0) {
            results.push('Missing or empty meta description');
          }
          
          const h1Tags = document.querySelectorAll('h1');
          if (h1Tags.length === 0) {
            results.push('No H1 tag found');
          } else if (h1Tags.length > 1) {
            results.push('Multiple H1 tags found');
          }
          
          const canonical = document.querySelector('link[rel="canonical"]');
          if (!canonical) {
            results.push('Missing canonical link');
          }
          
          JSON.stringify(results.length > 0 ? results : ['Basic SEO checks passed']);
        `,
        returnByValue: true
      });
      
      const seoResults = JSON.parse(result.result?.value || '[]');
      
      return {
        content: [{ type: 'text', text: `SEO Audit Results:\\n${seoResults.join('\\n')}` }],
      };
    }
  • Tool schema definition including name, description, and input schema (empty properties). Used in ListToolsRequest response.
    {
      name: 'run_seo_audit',
      description: 'Run an SEO audit on the current page',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • index.js:383-384 (registration)
    Registration in the CallToolRequestSchema switch statement that dispatches calls to the runSEOAudit handler method.
    case 'run_seo_audit':
      return await this.runSEOAudit();
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the action ('run an SEO audit') but doesn't explain what this entails (e.g., what metrics are checked, whether it modifies the page, how results are returned, or if it has side effects). For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without any wasted words. It is appropriately sized and front-loaded, making it easy to understand at a glance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of an SEO audit (which typically involves multiple checks and outputs), the description is incomplete. It lacks details on what the audit covers, how results are returned (no output schema), and behavioral traits. With no annotations and no output schema, the description should provide more context to be fully helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and the schema description coverage is 100%, so there are no parameters to document. The description doesn't need to add parameter semantics, and it appropriately doesn't mention any. A baseline of 4 is applied for zero-parameter tools, as there's nothing missing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('run an SEO audit') and target ('on the current page'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'run_accessibility_audit' or 'run_performance_audit' beyond the SEO focus, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'run_accessibility_audit' or 'run_performance_audit', nor does it mention prerequisites (e.g., requiring a page to be loaded). It only states what the tool does, not when it should be selected.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/nfodor/claude-arm64-browser'

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