Skip to main content
Glama
@ansvar/supply-chain-security-mcp

@ansvar/supply-chain-security-mcp

assess_composition_risk

Assess software composition risks by risk type and severity, returning attack mechanisms, detection methods, prevention measures, examples, and priority guidance.

Instructions

Software composition risk assessment grouped by risk type (dependency confusion, typosquatting, maintainer compromise, malicious package, abandoned dependency). Returns risks with attack mechanisms, detection methods, prevention measures, real-world examples, and severity. Use to understand and prioritize supply chain composition risks.

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": "assess_composition_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
severityNoFilter by severity
risk_typeNoFilter by risk type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations and no output schema, the description does useful work by disclosing the fields returned (attack mechanisms, detection methods, prevention measures, real-world examples, severity). However, it leaves a meaningful ambiguity unresolved: whether this assesses the caller's actual project composition or returns a static knowledge base of risk types, which changes how an agent should invoke and interpret it.

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?

Three compact sentences, front-loaded with what the tool is and what it returns, then closing with usage. The parenthetical risk-type list is long but maps to the enum and aids selection; no filler sentences.

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 two-optional-filter tool with no output schema, the description compensates by enumerating return fields and coverage scope. The only real gap is the static-catalog-versus-live-scan ambiguity, which matters for correct invocation but is a single missing clarification rather than a systemic omission.

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% and both parameters have documented enums, so the schema already carries parameter meaning. The description lists risk types matching the enum but adds no filtering semantics (e.g., whether filters combine as AND, or what happens when both are omitted). Baseline 3 is appropriate.

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 ('composition risk assessment') and enumerates the risk categories covered (dependency confusion, typosquatting, maintainer compromise, malicious package, abandoned dependency). It is clearly distinguishable from siblings like get_supply_chain_attack or search_attack_patterns because it is framed as a grouped catalog of composition risk types rather than a single-attack lookup, though it does not name those siblings explicitly.

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?

The final sentence ('Use to understand and prioritize supply chain composition risks') gives a usage context, but there is no explicit when-not guidance, no mention of how it differs from related assessment tools such as assess_slsa_posture, and no stated prerequisites. Usage is implied rather than directed.

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