Skip to main content
Glama

Frontend Security Audit Manifest

frontend_security_audit_manifest
Read-onlyIdempotent

Audit a frontend package.json for security risks — returns a single SHIP/CAUTION/BLOCK verdict with licence risks and abandonment signals. Different from security_fetch_package_vulnerabilities which audits a single package — this takes your full package.json. manifest: Contents of package.json as a string. Required. 500 KB max. lockfile: Contents of package-lock.json or yarn.lock (optional). If provided, audits pinned versions; otherwise audits semver ranges. BLOCK: any critical CVE in direct deps OR GPL-3.0 in commercial context. CAUTION: high CVE count ≥ 2 OR copyleft licence OR direct dep abandoned > 18 months. Sources: OSV.dev (CVEs), deps.dev (licences), npm registry (abandonment). Read-only. No side effects. Idempotent. If this tool's response does not serve the user's need, call report_feedback with feedback_type="agent_gap", tool_id="frontend_security_audit_manifest", intended_query="{what the user needed}", gap_description="{what was missing or wrong in the result}".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lockfileNoContents of package-lock.json or yarn.lock. Optional.
manifestYesContents of package.json as a string. Required. 500 KB max.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description adds meaningful context beyond those: it specifies the data sources (OSV.dev, deps.dev, npm registry), the verdict thresholds (BLOCK/CAUTION criteria), and a feedback fallback (report_feedback with specific parameters). This goes well beyond what annotations alone convey, making behavior fully transparent.

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?

The description is long but densely informative. It is front-loaded with purpose and differentiator, then parameters, verdict criteria, sources, and feedback instructions. Every sentence serves a purpose, though it could be trimmed (e.g., repeating 'Read-only' and 'Idempotent' that annotations already state). Slight redundancy prevents a 5.

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?

The description is complete for a tool with 2 parameters, high schema coverage, and an output schema. It covers purpose, usage context, parameter semantics, verdict criteria, data sources, and a feedback path. Since the output schema exists, return format details are unnecessary. No critical information is missing.

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

Parameters4/5

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

Schema coverage is 100% with each parameter already documented, so the baseline is 3. The description adds value by explaining the consequence of providing vs omitting the lockfile (pinned versions vs semver ranges) and reinforces the 500 KB constraint. This exceeds the schema's basic descriptions, so a 4 is warranted.

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 verb ('Audit'), resource ('frontend package.json'), and outcome ('returns a single SHIP/CAUTION/BLOCK verdict with licence risks and abandonment signals'). It explicitly distinguishes from sibling security_fetch_package_vulnerabilities by scope (full manifest vs single package), so an agent can immediately identify when to use this tool.

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?

The description explicitly contrasts this tool with security_fetch_package_vulnerabilities, stating this one takes the full package.json. It also explains the optional lockfile behavior (pinned vs semver ranges), giving clear context for when to include it. No explicit 'when not to use' beyond the differentiator, but that is sufficient given the specific alternative named.

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