cpe_search
Find the CPE vendor and product names that SecDB uses for a product, with the number of CVEs of each one.
What this tool does
Searches the vendor and product names in the CPE configurations of the CVEs, marked as vulnerable. Every result can be passed to product_vulnerabilities. Results go from the most to the least CVEs.
When to use this tool
Use this tool when the user asks:
"What is the CPE name of Apache HTTP Server?"
"Which Fortinet products have known CVEs?"
Use it before product_vulnerabilities when the exact names are not known. For open source dependencies, use purl_audit.
Inputs
query: words to search in the vendor and product names, for example
apache http server. Every word must match the vendor or the product.vendor: exact CPE vendor name, to search only its products.
part:
a(application),o(operating system), orh(hardware).limit: maximum number of results to return (default 25, maximum 100).
page: page of results to return (default 1).
Outputs
total_results, total_pages, current_page
results: each with
vendor,product,parts,cve_countnote: present when nothing matches
LLM usage guidelines
When several products match, show them to the user or use the closest one and say which one you chose. Do not merge them.
cve_countshows how many CVEs have the name, not how relevant it is.No result does not mean that the product has no CVEs: try fewer or different words, or
vulnerability_search.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "cpe_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page of results | |
| part | No | a, o, or h | |
| limit | No | Maximum results | |
| query | Yes | Words to search in vendor and product names | |
| vendor | No | Exact CPE vendor name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when nothing matches | |
| results | Yes | ||
| total_pages | Yes | Pages of results | |
| current_page | Yes | Page returned | |
| total_results | Yes | Vendor and product names found |