Skip to main content
Glama

vul_vendor_product_cve

Retrieve a JSON listing all vulnerabilities for a specific vendor and product using the CVE-Search API, enabling targeted security analysis and risk assessment.

Instructions

To get a JSON with all the vulnerabilities per vendor and a specific product

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productYes
vendorYes

Implementation Reference

  • main.py:45-51 (handler)
    The main handler function for the 'vul_vendor_product_cve' tool. It constructs a URI for the CVE search API based on vendor and product, and uses the get_requests helper to fetch the JSON response containing vulnerabilities.
    @mcp.tool() def vul_vendor_product_cve(vendor: str, product: str) -> Dict[str, Any]: """ To get a JSON with all the vulnerabilities per vendor and a specific product """ uri = f"search/{vendor}/{product}" return get_requests(uri)
  • main.py:15-26 (helper)
    Supporting helper function used by the tool to perform HTTP requests to the CVE API, handling errors and returning JSON data.
    def get_requests(uri: str) -> Dict[str, Any]: """To get a JSON with all the requests""" session = requests.Session() url = f"{BASE_URL}{uri}" try: response = session.get(url, timeout=15) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e: logger.error(f"api request failed: {url} - {str(e)}") return {"error": str(e)}
  • main.py:45-45 (registration)
    The @mcp.tool() decorator registers the vul_vendor_product_cve function as an MCP tool.
    @mcp.tool()

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/roadwy/cve-search_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server