Skip to main content
Glama

CVSS Calculator

cvss_calculator
Read-only

Decode a CVSS v3.0/v3.1 vector into its base metrics and recompute its base, temporal and environmental scores. Use it on a vector you hold; cve_lookup already gives the scores of a CVE. v2 and v4 are refused.

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": {
      "vector": "<vector>"
    },
    "name": "cvss_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
vectorYesCVSS:3.0/ or CVSS:3.1/ vector with all eight base metrics; temporal and environmental metrics are optional, e.g. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Output Schema

NameRequiredDescriptionDefault
vectorYesThe vector as sent.
creditsYes
metricsYesThe eight base metrics, spelled out.
summaryYesOne sentence: version, severity, base score, and AV, AC, PR, UI and Scope.
versionYes3.0 or 3.1.
base_scoreYes0-10.
base_severityYesNONE at 0.0, LOW below 4.0, MEDIUM below 7.0, HIGH below 9.0, else CRITICAL.
temporal_scoreYes0-10, with the temporal metrics of the vector. A metric it leaves out counts as Not Defined. With none, it equals base_score.
environmental_scoreYes0-10, with the environmental metrics of the vector. A metric it leaves out counts as Not Defined. With none, it usually equals base_score, but CVSS 3.1 can give another value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds real context on top: which version families are rejected outright and that temporal/environmental scores are recomputed rather than merely echoed. It doesn't discuss error messaging or what happens with partially-specified vectors, but the output schema covers the result shape.

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

Conciseness5/5

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

Three short sentences, each doing distinct work: what it does, when to use it versus the sibling, and the version restriction. The capability statement is front-loaded and there is no filler.

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

Completeness5/5

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

For a single-parameter, read-only computation tool with a full schema and an output schema, nothing an agent needs in order to call it correctly is missing. Return values need not be explained because the output schema exists.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter already documents the required CVSS:3.0/ or CVSS:3.1/ prefix, all eight base metrics, and an example. The description's only added detail is that v2 and v4 vectors are refused, which is useful but marginal over the schema's own format rules.

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?

Uses specific verbs ("decode", "recompute") against a specific resource (a CVSS v3.0/v3.1 vector) and names exactly what it produces: base metrics plus base, temporal and environmental scores. It also distinguishes itself from the closest sibling by noting cve_lookup already returns a CVE's scores.

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?

Explicitly states the trigger condition ("Use it on a vector you hold") and routes the other case to the alternative ("cve_lookup already gives the scores of a CVE"). It also states an exclusion ("v2 and v4 are refused"), so both when-to-use and when-not-to-use are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.