demo_security_snapshot
Test security header audits with a free example snapshot to verify integration or demonstrate output format before live scans.
Instructions
Returns a pre-baked example security snapshot (no payment required). Use this to test your integration or demonstrate the output format without spending USDC.
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": "demo_security_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:100-109 (handler)The handler logic for 'demo_security_snapshot' which fetches a JSON response from the API's demo endpoint.
if (name === "demo_security_snapshot") { const res = await fetch(`${BASE_URL}/demo/snapshot`); if (!res.ok) { throw new McpError(ErrorCode.InternalError, `Demo endpoint returned ${res.status}`); } const data = await res.json(); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } - src/index.ts:82-92 (registration)The registration block for the 'demo_security_snapshot' tool.
{ name: "demo_security_snapshot", description: "Returns a pre-baked example security snapshot (no payment required). " + "Use this to test your integration or demonstrate the output format without spending USDC.", inputSchema: { type: "object", properties: {}, required: [], }, },