# package_trust

Use before recommending or installing an npm package — to check whether it is safe and current. Pass the package name (and optionally a version, e.g. 4.17.0) with language='ts'. The substrate returns every OSV/GHSA security advisory affecting it (with severity, CVE aliases, the exact affected version range, and the advisory URL) and, if you pass a version, whether THAT version is affected; plus npm registry signals — whether the package is deprecated (and the maintainer's deprecation message), its latest version and last-publish date, and a maintained flag; plus how many real Next.js projects in the corpus depend on it and which declared version ranges the advisories actually bite. This is the cross-referenced security + maintenance signal a stale model cannot reliably know.

Agent View of the PolicyLayer registry record for `package_trust`. HTML page: https://policylayer.com/tools/dev-codeitall-codeitall/package-trust

## Facts

- Tool: `package_trust`
- Server: Codeitall (`https://api.codeitall.dev/mcp`) — https://policylayer.com/tools/dev-codeitall-codeitall.md
- Homepage: https://github.com/codeitalldev/codeitall
- Risk category: Read (Low risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 3 (1 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `package` | string | yes |  |
| `version` | string | no |  |
| `language` | string | no |  |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "package_trust",
    "arguments": {
      "package": "<package>"
    }
  }
}
```

## Why package_trust is rated Low

This tool retrieves and aggregates publicly available security and registry data about packages. It does not install packages, execute code, modify data, delete resources, or commit financial obligations. While the information could inform security decisions, the tool itself only performs read operations against npm registry and vulnerability databases.

From the tool's own definition: "Tool queries security advisories, deprecation status, and registry metadata for npm packages. Description states it returns 'every OSV/GHSA security advisory', 'deprecation' status, 'latest version and last-publish date', and other registry signals."

Risk signals: Bulk/mass operation — affects multiple targets

## Use case

AI agents call package_trust to retrieve information from Codeitall without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Codeitall:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "package_trust": {}
  }
}
```

## Other tools on Codeitall (7)

- `answer_api_question` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/answer-api-question.md
- `behavior_lookup` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/behavior-lookup.md
- `compare_implementations` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/compare-implementations.md
- `find_modern_equivalent` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/find-modern-equivalent.md
- `list_families` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/list-families.md
- `pattern_consensus` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/pattern-consensus.md
- `signature_search` — Read — https://policylayer.com/tools/dev-codeitall-codeitall/signature-search.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=dev-codeitall-codeitall · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/dev-codeitall-codeitall
