Skip to main content
Glama
dcianciulli

DefectDojo MCP Server

by dcianciulli

accept_risks_vulnerability

Bulk accept risk for findings matching vulnerability IDs (CVEs) in the current engagement, with justification and accepted-by details.

Instructions

Bulk accept risk for findings matching vulnerability IDs (CVEs).

Uses the native /findings/accept_risks/ endpoint: matches findings by vulnerability_id (CVE) inside the CURRENT engagement context. Use accept_risk() instead when you need explicit finding IDs and an expiration date.

Args: vulnerability_ids: CVE or advisory IDs (e.g. ["CVE-2024-1234"]) accepted_by: Name/email of the person accepting the risk justification: Justification for accepting findings with these vulnerability IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accepted_byYes
justificationYes
vulnerability_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that this is a bulk mutation scoped to the current engagement and names the backend endpoint, which is real behavioral context. However, it says nothing about required permissions, reversibility, or whether previously accepted findings are overwritten; for a destructive bulk mutation with zero annotation coverage that leaves gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core distinction from accept_risk() is front-loaded in the first two sentences, then the Args block documents each parameter economically. The endpoint aside is slightly redundant with the purpose sentence but overall well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained. For a 3-required-param bulk mutation with no annotations, the description covers purpose, scoping, sibling routing, and parameter format, which is nearly everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds meaning beyond the schema by exemplifying the format ('CVE or advisory IDs, e.g. ["CVE-2024-1234"]') and clarifying that accepted_by is a name/email and justification applies to all findings matching those IDs. With no schema coverage and only three params, this is meaningful compensation, though it could say whether IDs are single or comma-separated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource ('Bulk accept risk for findings matching vulnerability IDs') and explicitly names the endpoint used. It also distinguishes the tool from its sibling accept_risk() by spelling out the exact difference: matching by vulnerability_id vs explicit finding IDs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit when-to-use-instead instruction: 'Use accept_risk() instead when you need explicit finding IDs and an expiration date.' It also constrains scope to the CURRENT engagement context, so the agent knows this is engagement-bounded.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.