Skip to main content
Glama

FHI MCP Server Security Audit

Package Install Preflight

package_install_preflight

npm or PyPI install preflight: blocks missing packages, detects near-name typosquats when an expected name is supplied, and checks OSV advisories. ($0.01 USDC on Base)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
versionNo
ecosystemYes
expectedNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose meaningfully: what it blocks, that typosquat detection depends on supplying an expected name, that OSV advisories are consulted, and that it costs $0.01 USDC on Base. It remains silent on auth/permission needs, rate limits, and whether the call is strictly read-only.

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?

A single dense sentence with the core purpose front-loaded, followed by the cost. Zero filler.

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?

No output schema and no annotations, so the description should say more about what a caller gets back (verdict shape, advisory details) and any prerequisites. It conveys the check's intent and cost but leaves result format and version handling unaddressed.

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 0%, so the description must compensate. It clarifies expectedName's role ('when an expected name is supplied') and the ecosystem values (npm or PyPI), but leaves 'version' entirely undocumented in both schema and description.

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?

States a specific verb+resource ('install preflight' for npm/PyPI) and enumerates the three things it does: block missing packages, detect typosquats, check OSV advisories. This clearly separates it from siblings like mcp_payment_preflight, whose domain is payments rather than package registries.

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 word 'preflight' and 'install' imply usage before installing a package, but there is no explicit when-to-use, no exclusions, and no comparison to alternatives. Usage 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