Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

run_best_practices_audit

Analyze web page performance and compliance by running a best practices audit on Chromium ARM64 Browser. Identifies optimization opportunities and ensures adherence to standards for efficient web automation and testing.

Instructions

Run a best practices audit on the current page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'run_best_practices_audit' tool. It ensures Chromium is running, evaluates JavaScript in the browser context to check for HTTPS usage, mixed HTTP content, deprecated HTML tags, and missing viewport meta tag, then returns formatted results.
    async runBestPracticesAudit() { await this.ensureChromium(); const result = await this.sendCDPCommand('Runtime.evaluate', { expression: ` const results = []; if (location.protocol !== 'https:') { results.push('Page is not served over HTTPS'); } const httpResources = Array.from(document.querySelectorAll('[src], [href]')) .filter(el => (el.src || el.href)?.startsWith('http:')) .length; if (httpResources > 0) { results.push(\`Found \${httpResources} HTTP resources on HTTPS page\`); } const deprecatedTags = Array.from(document.querySelectorAll('font, center, big, small, tt')).length; if (deprecatedTags > 0) { results.push(\`Found \${deprecatedTags} deprecated HTML tags\`); } const viewport = document.querySelector('meta[name="viewport"]'); if (!viewport) { results.push('Missing viewport meta tag for mobile optimization'); } JSON.stringify(results.length > 0 ? results : ['Best practices checks passed']); `, returnByValue: true }); const bestPracticesResults = JSON.parse(result.result?.value || '[]'); return { content: [{ type: 'text', text: `Best Practices Audit Results:\\n${bestPracticesResults.join('\\n')}` }], }; }
  • index.js:385-386 (registration)
    Registration/dispatch in the CallToolRequestSchema switch statement that routes calls to the runBestPracticesAudit handler.
    case 'run_best_practices_audit': return await this.runBestPracticesAudit();
  • index.js:304-310 (registration)
    Tool registration in the ListToolsRequestSchema response, including name, description, and input schema (empty, no parameters required).
    name: 'run_best_practices_audit', description: 'Run a best practices audit on the current page', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition for the tool (accepts empty object).
    inputSchema: { type: 'object', properties: {}, },
  • Helper call to runBestPracticesAudit within the runAuditMode comprehensive audit function.
    results.bestPractices = await this.runBestPracticesAudit();

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