Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

renv_install

Installs CRAN, GitHub, or version-pinned R packages into a project's renv library, keeping dependencies reproducible and locked to the project.

Instructions

Install packages into the renv project library using renv::install(). Supports CRAN packages, GitHub (user/repo), or version-pinned installs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "packages": "<packages>",
      "project_path": "<project_path>"
    },
    "name": "renv_install"
  }
}

Input Schema

NameRequiredDescriptionDefault
rebuildNoWhether to rebuild packages from source (default false).
packagesYesPackage names (and optional version specifiers) to install, e.g. ['ggplot2', 'dplyr@1.0.0'].
project_pathYesAbsolute path to the renv-managed project root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It usefully discloses supported package sources (CRAN, GitHub user/repo, version pins), but omits consequential behavior: network/GitHub auth requirements, failure handling, and the fact that installing does not update the lockfile (renv_snapshot's job).

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?

Two tight sentences, front-loaded with the action and destination; every clause carries information (target library, underlying function, supported source types). No filler.

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 three-parameter install tool with a fully documented schema and no output schema, the description covers purpose and source formats adequately. The main residual gap is not telling the agent that a snapshot is needed to persist the install to the lockfile, which matters given renv_snapshot as a sibling.

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 100%, so all three parameters including 'rebuild' are already documented, making 3 the baseline. The description does add the GitHub 'user/repo' source syntax that the schema example (['ggplot2','dplyr@1.0.0']) does not show, but adds nothing for rebuild or project_path.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb (install) and target (the renv project library), plus names the underlying call renv::install(). This distinguishes it from the generic 'install' sibling by scope, though it never names that sibling explicitly.

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

Usage Guidelines2/5

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

It says what gets installed where, but gives no when-to-use guidance, no prerequisites (project must be renv-initialized), and no pointer to alternatives such as the plain 'install' tool or 'renv_restore'. Usage must be inferred from the name and target library.

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