Skip to main content
Glama

validate_all_security

Run comprehensive security tests on websites using Mozilla Observatory and SSL Labs to identify vulnerabilities and security issues.

Instructions

Run all security tests (Mozilla Observatory + SSL Labs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesEmail for SSL Labs
urlYes
waitForSSLNoWait for SSL Labs to complete

Implementation Reference

  • The core handler function for 'validate_all_security' tool. Orchestrates Mozilla Observatory and SSL Labs security scans, combines results with summary.
    export async function runAllSecurity( url: string, options: SecurityTestOptions ): Promise<AllSecurityResult> { // Run both security tools const mozillaResult = await analyzeMozillaObservatory(url); const sslResult = options.sslLabs.waitForComplete ? await analyzeSSLLabsComplete(url, options.sslLabs) : await analyzeSSLLabs(url, options.sslLabs); return { url, timestamp: new Date().toISOString(), mozilla_observatory: mozillaResult, ssl_labs: sslResult, summary: { mozilla_grade: mozillaResult.grade, ssl_grade: sslResult.grade, overall_success: mozillaResult.success && (sslResult.success || sslResult.status !== 'ERROR'), }, }; }
  • index.ts:271-283 (registration)
    Tool registration in the MCP tools list, including name, description, and input schema.
    { name: 'validate_all_security', description: 'Run all security tests (Mozilla Observatory + SSL Labs).', inputSchema: { type: 'object', properties: { url: { type: 'string' }, email: { type: 'string', description: 'Email for SSL Labs' }, waitForSSL: { type: 'boolean', description: 'Wait for SSL Labs to complete' }, }, required: ['url', 'email'], }, },
  • Zod schema for validating input arguments to the validate_all_security tool.
    const AllSecurityArgsSchema = z.object({ url: z.string().url(), email: z.string().email(), waitForSSL: z.boolean().optional(), });
  • MCP server dispatch handler that validates arguments and calls the runAllSecurity function.
    case 'validate_all_security': { const validatedArgs = AllSecurityArgsSchema.parse(args); const result = await runAllSecurity(validatedArgs.url, { sslLabs: { email: validatedArgs.email, waitForComplete: validatedArgs.waitForSSL, }, }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }

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