Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

renv_init

Initialise a project-local R dependency library with renv, creating renv/ and renv.lock and updating .Rprofile to make package environments reproducible.

Instructions

Initialise an renv project-local library for the project using renv::init(). Creates renv/ and renv.lock, and updates .Rprofile.

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": {
      "project_path": "<project_path>"
    },
    "name": "renv_init"
  }
}

Input Schema

NameRequiredDescriptionDefault
bareNoIf TRUE, initialise without installing any packages into the new library (default false).
restartNoWhether to restart the R session after initialising (default false).
project_pathYesAbsolute path to the project root where renv should be initialised.

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?

The description discloses concrete side effects: creating renv/ and renv.lock and modifying .Rprofile. That is meaningful given zero annotations. It does not state whether an existing .Rprofile or renv.lock is overwritten, whether the operation is idempotent, or what happens on failure. This disclosure is also weaker than the calibration bar, where a similar no-annotation mutation tool that lists fields is scored 2.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences with no filler: the first gives purpose and mechanism, the second enumerates effects. Size is appropriate for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the definition covers purpose and side effects but omits the return value, idempotency/re-run behavior, and any warning about overwriting existing configuration. Those gaps matter for an agent deciding whether it is safe to call.

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 100%, so bare, restart, and project_path are already documented in the schema. The description adds no parameter-level meaning (e.g., dependency download behavior when bare=false), so the baseline 3 applies.

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 specific verb ('Initialise') and resource ('renv project-local library') and names the underlying call (renv::init()), which distinguishes it from siblings like renv_restore or renv_snapshot. It stops short of explicitly contrasting with those alternatives, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied by the 'init' semantics: it is the setup step for a project that does not yet have an renv library. There is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no pointer to renv_restore/renv_snapshot for related tasks.

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