Skip to main content
Glama

security_cpe

Read-only

CPE name parser, converter and matcher — Offline CPE (Common Platform Enumeration) tool for vulnerability management. Pass cpe as a CPE 2.3 formatted string (cpe:2.3:a:apache:log4j:2.14.1:::::::) or a CPE 2.2 URI (cpe:/a:apache:log4j:2.14.1) to validate it and get all 11 attributes (ANY / NA / value, wildcards), the part label, both bindings (2.3 formatted string and 2.2 URI with packed edition), and NVD API URLs for matching CVEs. Add match with a second CPE to get the NIST IR 7696 name-matching relation (EQUAL / SUPERSET / SUBSET / DISJOINT) per attribute and overall, e.g. whether a vulnerable-product pattern like cpe:2.3:a:apache:log4j:2.:::::::* covers an installed product. Invalid CPEs return 422 (not charged). Price: $0.002 USDC (Base, via x402).

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": {
      "cpe": "<cpe>"
    },
    "name": "security_cpe"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpeYescpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:*

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

The description goes well beyond the annotations: it discloses the failure mode (invalid CPEs return 422 and are not charged), the pricing model ($0.002 USDC on Base via x402), and a full inventory of what the response contains (all 11 attributes, the part label, both bindings, NVD URLs). readOnlyHint/destructiveHint already cover the safety profile, and the description adds the exact error and billing semantics an agent cannot get elsewhere.

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?

It is front-loaded with the purpose and then flows input → output → matching → errors → price, which is a sensible order. The single dense block is long and repeats the 'CPE name parser, converter and matcher' framing from the title, but the examples earn their space by showing exact formats.

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 one-parameter tool with no output schema, the description carries nearly everything: accepted formats, the 11-attribute result shape, the IR 7696 relation vocabulary, error behavior and cost. The only completeness gap is that the matching mode is described with no documented way to supply the second CPE in the schema.

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?

The only schema parameter is `cpe`, and the description usefully explains that it accepts either a 2.3 formatted string or a 2.2 URI with packed edition. However, it instructs the agent to 'add match with a second CPE' — a parameter that does not exist in the supplied input schema — which can send an agent looking for a field that is not there. Baseline 3 applies given 100% schema coverage, but the phantom `match` reference is a real defect rather than added meaning.

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 triple verb — parse, convert, match — over a specific resource (CPE / Common Platform Enumeration), and the scope (offline CPE handling for vulnerability management) sets it apart from the CVE/CVSS siblings. An agent can tell immediately that this is not a CVE lookup tool but a CPE normalization/matching tool.

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

Usage Guidelines4/5

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

It gives concrete input forms (CPE 2.3 formatted string vs CPE 2.2 URI) and a clear trigger for the matching mode with a worked example (the log4j 2.* pattern covering an installed product). What is missing is explicit routing: it never says to use security_cve for CVE lookups instead, or when matching is preferable to calling the CVE tool, so the alternative-selection guidance is implied rather than stated.

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.

Resources