Skip to main content
Glama

check_package

check_package
Read-onlyIdempotent

Call before npm/pip install or when an agent names a dependency: verifies the package exists, is maintained, and is not a typosquat, returns safe_to_install.

Input Schema

NameRequiredDescriptionDefault
nameNoPackage name.
versionNoOptional exact version to check.
packagesNoCheck several packages in one call.
ecosystemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description's real contribution is disclosing the three checks performed and the key return field safe_to_install, which matters because no output schema exists. It does not explain what happens on lookup failure, unknown ecosystem, or partial batch results. Minor tension: checking npm/pypi registries implies external lookup while openWorldHint is false, though this reads as annotation intent rather than a description contradiction.

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 sentence, zero waste: the invocation trigger is front-loaded, then the checks, then the return field. Nothing is repeated from the name or title.

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 read-only lookup with no output schema, the description covers the trigger, the checks, and the primary return value, which is enough to call it correctly. Gaps remain around batch usage and what a negative or errored result looks like.

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 coverage is 75%, so the baseline is 3. The description implies the single-package "name" case and an ecosystem choice via "npm/pip," but never mentions the batch "packages" array, the optional "version" parameter, or how ecosystem is specified per package — all of which the schema must carry alone.

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 and resource ("verifies the package exists, is maintained, and is not a typosquat") and names the concrete evaluation outcome ("safe_to_install"). The resource noun "package" plus the npm/pip ecosystems distinguishes it from siblings like check_domain and check_command without needing to name them.

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

Usage Guidelines4/5

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

Gives an explicit trigger: "Call before npm/pip install or when an agent names a dependency." That covers both proactive and reactive usage. It stops short of stating when NOT to use it or naming an alternative sibling for related checks, so it falls one step below a full 5.

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.