Skip to main content
Glama

install_command

Read-onlyIdempotent

Generate correct install commands for any package across 17 package managers with proper flags. Returns primary and variant commands to prevent AI agents from using hallucinated or malicious installs.

Instructions

Canonical install command(s) across every package manager of the ecosystem (npm/pnpm/yarn/bun, pip/uv/poetry, cargo, go, composer, maven+gradle, nuget, …). USE WHEN: emitting an install line and you want correct flags. RETURNS: {primary, variants[]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ecosystemYes
packageYes
versionNoOptional explicit version; defaults to latest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world behavior. The description goes beyond these by detailing the return shape ({primary, variants[]}) and the broad scope ('every package manager'), adding useful context about what the agent can expect.

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 and well-structured in three logical chunks: purpose, usage condition, and return format. Every sentence earns its place with no redundant phrasing.

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 simple tool with three parameters and clear annotations, the combination of purpose, usage condition, return format, and read-only/idempotent annotations provides a solid understanding. It could mention error behavior or how version defaults work, but overall it is sufficiently complete for agent invocation.

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 low (33%); only 'version' has a description. The description lists example package managers, making 'ecosystem' semantics clear via the enum, and 'package' is self-evident as a package name. However, it does not clarify edge cases like scope syntax or version format, so the description adds minimal value beyond the schema.

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 identifies the resource being operated on (install commands) and the specific action (returning canonical versions) across all major package managers. This distinguishes it from sibling tools that check, compare, or scan packages rather than generating install snippets.

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?

The explicit 'USE WHEN' clause tells the agent exactly when to invoke this tool (emitting install lines with correct flags). It does not explicitly mention when not to use it or name alternatives, but sibling names make the distinction clear.

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