Ping
spiderfoot_pingVerify SpiderFoot server connectivity to ensure reconnaissance tools are operational before initiating OSINT scans.
Instructions
Ping SpiderFoot server to verify it is responding.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spiderfoot_ping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:39-43 (registration)Registers the 'spiderfoot_ping' MCP tool. Includes input schema (empty) and handler that calls sf.ping() and returns JSON response.
server.registerTool( 'spiderfoot_ping', { title: 'Ping', description: 'Ping SpiderFoot server to verify it is responding.', inputSchema: {} }, async () => ({ content: [{ type: 'text', text: JSON.stringify(await sf.ping()) }] }) ); - src/index.ts:42-42 (handler)Handler function for spiderfoot_ping tool: calls sf.ping() and formats response as MCP content.
async () => ({ content: [{ type: 'text', text: JSON.stringify(await sf.ping()) }] }) - src/index.ts:40-41 (schema)Tool metadata and input schema (empty object) for spiderfoot_ping.
'spiderfoot_ping', { title: 'Ping', description: 'Ping SpiderFoot server to verify it is responding.', inputSchema: {} }, - src/spiderfootClient.ts:24-27 (helper)SpiderfootClient.ping() method: proxies GET request to Spiderfoot server's /ping endpoint.
async ping() { const { data } = await this.http.get('/ping'); return data; } - src/index-http.ts:23-27 (registration)Identical registration of 'spiderfoot_ping' tool in the HTTP server variant.
server.registerTool( 'spiderfoot_ping', { title: 'Ping', description: 'Ping SpiderFoot server to verify it is responding.', inputSchema: {} }, async () => ({ content: [{ type: 'text', text: JSON.stringify(await sf.ping()) }] }) );