{"openapi":"3.1.0","info":{"title":"Ghost Protocol agent API","version":"1.1.0","description":"Agent-callable capabilities on ghosts.lk. The canonical transport is MCP at https://ghosts.lk/mcp. This document describes the same tools for clients that do not speak MCP. Rate limits apply per IP.","contact":{"email":"support@ghosts.lk","url":"https://ghosts.lk/contact"}},"servers":[{"url":"https://ghosts.lk"}],"paths":{"/mcp#run_scan":{"post":{"operationId":"run_scan","summary":"Run the free Ghost Scan on a website URL the user provides and return its grade + top fixes. Use when the user wants their site checked. A site that cannot be measured (the name does not exist, the certificate is not valid, no answer, a server error, a firewall's challenge page, or ghosts.lk itself, which the scanner runs on) returns an error that says why, never a grade.","description":"Invoke over MCP: POST /mcp with method \"tools/call\" and params.name \"run_scan\".","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"the website URL to scan, e.g. https://example.com"}},"required":["url"]}}}},"responses":{"200":{"description":"Tool result, as an MCP content array."}}}},"/mcp#capture_lead":{"post":{"operationId":"capture_lead","summary":"Save an interested visitor's contact details so Ghost Protocol can follow up. ONLY call after the user explicitly agrees and provides their name and email.","description":"Invoke over MCP: POST /mcp with method \"tools/call\" and params.name \"capture_lead\".","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"message":{"type":"string"},"intent":{"type":"string","description":"what they're interested in, e.g. 'pentest' or 'wyrm'"}},"required":["name","email","message"]}}}},"responses":{"200":{"description":"Tool result, as an MCP content array."}}}},"/mcp#route":{"post":{"operationId":"route","summary":"Suggest a page on ghosts.lk for the user to open next. Use to guide them to the right service/product/contact page.","description":"Invoke over MCP: POST /mcp with method \"tools/call\" and params.name \"route\".","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"page":{"type":"string","description":"a site path, e.g. /pentest"}},"required":["page"]}}}},"responses":{"200":{"description":"Tool result, as an MCP content array."}}}},"/mcp#book_call":{"post":{"operationId":"book_call","summary":"Offer the visitor a 15-minute call with a person at Ghost Protocol. Use when they want to talk to a human, book a call, speak to Ryan, or ask for something that needs a person.","description":"Invoke over MCP: POST /mcp with method \"tools/call\" and params.name \"book_call\".","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","description":"optional: what they want to talk about"}}}}}},"responses":{"200":{"description":"Tool result, as an MCP content array."}}}}}}