Skip to main content
Glama

Get vulnerability

gitlab_get_vulnerability
Read-onlyIdempotent

Retrieve a single GitLab vulnerability by its global ID to inspect details such as severity, status, and related project or group data.

Instructions

Get a single vulnerability by its global ID (Ultimate).

GET /vulnerabilities/{vulnerability_id}

Args: **kwargs: vulnerability_id (required).

Returns: Response: wrapper containing the original response and the parsed vulnerability (dict).

Raises: MissingParameterError: If vulnerability_id is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
dataNo
pageNo
group_idNo
per_pageNo
max_pagesNo
project_idNo
api_parametersNo
package_managerNo
vulnerability_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so the description is free to add the pieces they don't cover: the Ultimate license requirement, the shape of the wrapper response, and the two error conditions (MissingParameterError, ParameterError). These are real behavioral disclosures beyond the annotation set.

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

Conciseness3/5

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

Front-loads the purpose sentence, which is good, but then falls back to a docstring dump with an inaccurate '**kwargs' signature and a Raises block that is boilerplate across many tools. The Returns section is worth its space; the Args section is not.

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?

For a read-only single-resource fetch with annotations covering the safety profile and no output schema, the description does supply the response wrapper shape and error behavior, which is most of what an agent needs. The gap is the unexplained optional parameters, which could mislead an agent into passing pagination or project-scoping arguments with unknown effect.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description must compensate and largely fails: only vulnerability_id is mentioned, and it is described via a '**kwargs' construct that does not match the flat schema. Worse, the text says vulnerability_id is required while the schema marks it nullable with zero required parameters, and group_id, project_id, page, per_page, max_pages, data, api_parameters and package_manager go entirely unexplained.

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

Purpose4/5

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

States a specific verb and resource ('Get a single vulnerability by its global ID') and adds the REST endpoint, making the scope explicit. The word 'single' implicitly separates it from the list-style siblings gitlab_get_project_vulnerabilities and gitlab_get_group_vulnerabilities, though neither is named.

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

Usage Guidelines3/5

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

Adds a genuine precondition by flagging '(Ultimate)' tier and requiring a global vulnerability ID, which is useful context an agent needs before calling. However, it never says when to prefer this over the project/group vulnerability listing tools, so routing between siblings is left to inference.

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

Deploy Server

Other Tools