Nuclei · Capability
PDCP API — stats
PDCP API — stats. 1 operations. Lead operation: Get scan log stats of given scan id. Self-contained Naftiko capability covering one Nuclei business surface.
What You Can Do
GET
Getscansidscanlogstats
— Get scan log stats of given scan id
/v1/v1/scans/{scan-id}/scan-log/stats
MCP Tools
get-scan-log-stats-given
Get scan log stats of given scan id
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: PDCP API — stats
description: 'PDCP API — stats. 1 operations. Lead operation: Get scan log stats of given scan id. Self-contained Naftiko
capability covering one Nuclei business surface.'
tags:
- Nuclei
- stats
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
NUCLEI_API_KEY: NUCLEI_API_KEY
capability:
consumes:
- type: http
namespace: nuclei-stats
baseUri: https://api.projectdiscovery.io
description: PDCP API — stats business capability. Self-contained, no shared references.
resources:
- name: v1-scans-scan_id-scan_log-stats
path: /v1/scans/{scan_id}/scan_log/stats
operations:
- name: getscansidscanlogstats
method: GET
description: Get scan log stats of given scan id
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: rescan_count
in: query
type: integer
- name: host
in: query
type: string
description: target to search in log
- name: template
in: query
type: string
description: template to search in log
- name: matched
in: query
type: string
description: status to search in log
- name: time
in: query
type: string
description: time to filter the logs
- name: search
in: query
type: string
description: string to search in error, target and template
- name: error
in: query
type: string
description: error to search in log
- name: severity
in: query
type: string
authentication:
type: apikey
key: X-API-Key
value: '{{env.NUCLEI_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: nuclei-stats-rest
port: 8080
description: REST adapter for PDCP API — stats. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/v1/scans/{scan-id}/scan-log/stats
name: v1-scans-scan-id-scan-log-stats
description: REST surface for v1-scans-scan_id-scan_log-stats.
operations:
- method: GET
name: getscansidscanlogstats
description: Get scan log stats of given scan id
call: nuclei-stats.getscansidscanlogstats
with:
rescan_count: rest.rescan_count
host: rest.host
template: rest.template
matched: rest.matched
time: rest.time
search: rest.search
error: rest.error
severity: rest.severity
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: nuclei-stats-mcp
port: 9090
transport: http
description: MCP adapter for PDCP API — stats. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: get-scan-log-stats-given
description: Get scan log stats of given scan id
hints:
readOnly: true
destructive: false
idempotent: true
call: nuclei-stats.getscansidscanlogstats
with:
rescan_count: tools.rescan_count
host: tools.host
template: tools.template
matched: tools.matched
time: tools.time
search: tools.search
error: tools.error
severity: tools.severity
outputParameters:
- type: object
mapping: $.