Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

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 core handler function for the 'run_seo_audit' tool. It ensures Chromium is running, evaluates JavaScript in the page context to perform SEO checks (title, meta description, H1 tags, canonical), parses results, and returns formatted audit findings.
    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')}` }],
      };
    }
  • index.js:295-302 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and input schema (empty object).
    {
      name: 'run_seo_audit',
      description: 'Run an SEO audit on the current page',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • index.js:383-384 (registration)
    Dispatch case in the CallToolRequestSchema switch statement that routes calls to the runSEOAudit handler method.
    case 'run_seo_audit':
      return await this.runSEOAudit();
  • Input schema definition for the tool (requires no parameters).
    inputSchema: {
      type: 'object',
      properties: {},
    },
  • Usage of runSEOAudit within the comprehensive runAuditMode tool.
    results.seo = 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 states what the tool does but omits critical details: whether it's read-only or mutative, what permissions are needed, how long it runs, what output format to expect, or if it has side effects. For a tool with zero annotation coverage, this is a significant gap.

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 with zero wasted words. It's front-loaded with the core action and target, making it easy to parse. Every word earns its place by conveying essential information.

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 could involve analysis, scoring, or reporting) and the lack of both annotations and an output schema, the description is incomplete. It doesn't explain what the audit entails, what results to expect, or behavioral traits like execution time or side effects, leaving the agent with insufficient context.

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 zero parameters, and schema description coverage is 100% (though trivial). The description doesn't need to explain parameters, and it correctly implies no inputs are required by specifying 'on the current page' as the implicit target. This meets the baseline for tools with no parameters.

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 differentiate from sibling audit tools like 'run_accessibility_audit' or 'run_performance_audit', which follow the same pattern but target different audit types.

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. It doesn't mention prerequisites (e.g., needing a page loaded first), exclusions, or comparisons to sibling audit tools, leaving the agent to infer context from the tool name alone.

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/mcp-chromium-arm64'

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