Skip to main content
Glama

generate_cyclonedx_sbom

Read-onlyIdempotent

Convert package-lock.json, pnpm-lock.yaml, Cargo.lock, poetry.lock, or uv.lock into a deterministic CycloneDX 1.5 JSON SBOM with canonical purls, SHA-512/SHA-256 digests, and SPDX licenses.

Instructions

Generates a deterministic CycloneDX 1.5 JSON Software Bill of Materials (SBOM) with canonical Package URLs (purl), hex SHA-512/SHA-256 digests, and SPDX license objects.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_cyclonedx_sbom"
  }
}

Input Schema

NameRequiredDescriptionDefault
excludeDevNoWhen true, omits devDependencies from the emitted CycloneDX 1.5 components list.
filenameHintNoOptional lockfile filename hint used for format detection when lockfileContent is provided directly.
lockfilePathNoOptional local file path to a lockfile on disk when lockfileContent is omitted.
applicationNameNoOptional application component name written into metadata.component.name of the CycloneDX 1.5 BOM.
lockfileContentNoRaw text content of package-lock.json, pnpm-lock.yaml, Cargo.lock, poetry.lock, or uv.lock converted into CycloneDX 1.5 JSON.
referenceTimeIsoNoOptional ISO-8601 UTC timestamp overriding metadata.timestamp for byte-for-byte reproducible SBOM builds.
applicationVersionNoOptional application version written into metadata.component.version of the CycloneDX 1.5 BOM.
includeMarkdownReportNoWhen true, includes an executive M&A / EU CRA Markdown due-diligence summary alongside the CycloneDX 1.5 BOM.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds real behavioral value beyond them: deterministic/canonical output, the exact CycloneDX spec version (1.5), digest algorithms, and purl canonicalization — traits an agent would not otherwise know. It stops short of describing the return envelope or how errors on unparsable lockfiles surface.

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?

One dense sentence, front-loaded with the verb and the deliverable, with every qualifier (deterministic, 1.5, canonical purl, digest algorithms, SPDX) carrying information. Nothing is redundant with the title or padding.

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

Completeness3/5

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

With 8 optional parameters, no required inputs, and no output schema, the description should clarify what is returned (BOM only vs. BOM plus Markdown report) and that some inputs are mutually exclusive. It covers the artifact well but leaves an agent guessing about output shape and the 'no parameters at all' path.

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 description coverage is 100%, so the baseline is 3. The description mentions purls, digests, and license objects, but those are output artifacts rather than parameter semantics, and it does not clarify the lockfilePath vs lockfileContent precedence or the supported lockfile formats (which only the schema spells out).

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 (Generates) and a precisely specified resource (deterministic CycloneDX 1.5 JSON SBOM with canonical purls, SHA-512/SHA-256 digests, SPDX license objects). This is clearly distinct from the audit/evaluate/scan siblings, though the description never names them explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to call this before/after audit_lockfile_compliance or scan_supply_chain_hazards, and no prerequisites are stated. The only usage-adjacent signal is the phrase 'byte-for-byte reproducible SBOM builds', which hints at CI use but is buried in a parameter description, not the tool description.

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