Skip to main content
Glama

web_ssl_check

Check SSL certificate details for any domain to verify security status and expiration dates.

Instructions

Check SSL certificate details for a domain

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesDomain name (e.g. github.com)

Implementation Reference

  • The implementation of the 'web_ssl_check' tool handler using fetch to check HTTPS status and security headers.
    server.tool("web_ssl_check", "Check SSL certificate details for a domain", {
      domain: z.string().describe("Domain name (e.g. github.com)")
    }, async ({ domain }) => {
      try {
        const res = await fetch(`https://${domain}`, { method: "HEAD" });
        return { content: [{ type: "text", text: `**SSL Check:** ${domain}\nHTTPS: ${res.ok ? "VALID" : "ERROR"}\nStatus: ${res.status}\nHeaders: ${[...res.headers.entries()].filter(([k]) => k.includes("strict") || k.includes("security")).map(([k, v]) => `${k}: ${v}`).join("\n") || "No security headers"}` }] };
      } catch (e: any) {
        return { content: [{ type: "text", text: `**SSL Check:** ${domain}\nError: ${e.message}` }] };
      }
    });

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/ElromEvedElElyon/claw-mcp-toolkit'

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