Skip to main content
Glama

get_package_prompt

Read-onlyIdempotent

Obtain a plain-text package brief with verdict, health, vulnerabilities, alternatives, and maintainer alerts. Use to reason about package safety and include output directly in LLM context.

Instructions

LLM-optimised package brief — plain text ~300 tokens (~75% cheaper than JSON). Verdict (SAFE/AVOID/URGENT/MALICIOUS) + health + vulns + alternatives + maintainer alerts. USE WHEN: you want to reason over a package and drop the output directly in context; 'is X safe'. PREFER THIS over check_package in 95% of LLM cases. RETURNS: plain-text brief.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ecosystemYes
packageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish read-only, open-world, idempotent, and non-destructive behavior. The description adds meaningful context beyond annotations: plain-text output, ~300 tokens, ~75% cheaper than JSON, and the specific content components (verdict, health, vulns, alternatives, maintainer alerts). This is valuable behavioral disclosure.

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?

The description is concise (~75 words) and well-structured: main value proposition first, then usage conditions, preference over alternatives, and return format. Every sentence adds value with no redundancy.

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?

Given the simple two-parameter schema, strong annotations, and no output schema, the description sufficiently explains purpose, output content, and usage context. It covers what the tool returns, why it's useful for LLMs, and when to use it, making it complete for an agent.

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

Parameters2/5

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

Schema description coverage is 0% and the description does not explicitly explain the two parameters (package and ecosystem). While the parameter names and enum for ecosystem are self-explanatory, the description fails to compensate for the lack of schema descriptions. It adds no meaning beyond the field names.

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 clearly states the tool returns an LLM-optimised package brief with a verdict (SAFE/AVOID/URGENT/MALICIOUS) plus health, vulns, alternatives, and maintainer alerts. It explicitly differentiates from sibling check_package by noting it's plain-text, cheaper, and preferred in 95% of LLM cases.

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?

Provides explicit 'USE WHEN' guidance (reasoning over a package, dropping output directly in context, 'is X safe') and explicitly recommends preferring this over check_package in most LLM scenarios. This gives clear when-to-use and alternative guidance.

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