Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

load_all

Simulate installing and attaching an R package to make all functions available in the current session for interactive testing.

Instructions

Simulate installing and attaching the package using devtools::load_all(). Makes all functions available in the current R session for interactive testing.

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": "load_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
resetNoWhether to reset the namespace before loading (default false).
recompileNoWhether to recompile C/C++/Fortran code (default false).
project_pathYesAbsolute path to the root of the R package.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does convey the key behavioral point that loading is simulated and functions become available in the current R session, which is valuable context beyond the schema; it does not mention side effects on the namespace, that nothing is written to the library, or what is returned.

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 short sentences, front-loaded with the action and its implementation. There is mild redundancy between 'installing and attaching' and 'makes all functions available', but nothing extraneous enough to warrant trimming.

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 tool with full schema coverage and no output schema, the description covers what the tool does and its observable effect on the session. Remaining gaps — return value and side effects on the namespace — are modest given the schema already documents the flags.

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%, with reset, recompile and project_path all documented in the schema itself, so the baseline of 3 applies. The description adds no further meaning about how reset or recompile interact with the load behavior, which would have been the only useful addition.

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 and resource — 'Simulate installing and attaching the package using devtools::load_all()' — which is concrete and recognizable. It implicitly separates itself from siblings like install or build by emphasizing simulation and session availability, though it never names an alternative explicitly.

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?

The clause 'for interactive testing' gives an implied usage context, steering the agent away from install for quick iteration. However, there is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites (e.g. that the package must be loadable), and no named alternative such as install or build.

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