Skip to main content
Glama

zap.health_check

Verify ZAP security tool connectivity and operational status to ensure vulnerability scanning readiness.

Instructions

Check if ZAP is running and accessible

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'zap.health_check' tool. It checks if the ZAP client is initialized and performs the health check by calling client.healthCheck(), then formats the result.
    async (): Promise<ToolResult> => { const client = getZAPClient(); if (!client) { return formatToolResult(false, null, 'ZAP client not initialized'); } const result = await client.healthCheck(); return formatToolResult(result.success, result.data, result.error); }
  • Input schema and description for the 'zap.health_check' tool. No input parameters required.
    { description: 'Check if ZAP is running and accessible', inputSchema: { type: 'object', properties: {}, }, },
  • src/tools/zap.ts:39-56 (registration)
    Local registration of the 'zap.health_check' tool within the registerZAPTools function using server.tool().
    server.tool( 'zap.health_check', { description: 'Check if ZAP is running and accessible', inputSchema: { type: 'object', properties: {}, }, }, async (): Promise<ToolResult> => { const client = getZAPClient(); if (!client) { return formatToolResult(false, null, 'ZAP client not initialized'); } const result = await client.healthCheck(); return formatToolResult(result.success, result.data, result.error); } );
  • src/index.ts:49-49 (registration)
    Top-level registration call in the main server setup that invokes registerZAPTools(server), thereby registering the 'zap.health_check' tool.
    registerZAPTools(server);
  • The ZAPClient.healthCheck() method implementation that actually queries ZAP's version endpoint to verify accessibility.
    async healthCheck(): Promise<ZAPScanResult> { try { const response = await this.client.get('/core/view/version/'); return { success: true, data: { version: response.data.version, status: 'running', }, }; } catch (error: any) { return { success: false, error: error.message || 'ZAP is not accessible', }; } }

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/telmon95/VulneraMCP'

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