Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

check

Run R CMD validation on an R package to surface errors, warnings, and notes that could block CRAN submission.

Instructions

Run R CMD check on the package using devtools::check(). Identifies errors, warnings, and notes that would prevent CRAN submission.

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

Input Schema

NameRequiredDescriptionDefault
cranNoWhether to use CRAN-specific settings (default false).
documentNoWhether to run devtools::document() before checking (default true).
error_onNoMinimum check severity that causes an error: 'never', 'note', 'warning', or 'error' (default 'warning').warning
project_pathYesAbsolute path to the root of the R package.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it omits that R CMD check is long-running, executes package code (examples, tests, vignettes), can write files to the source tree, and that the default document=true triggers devtools::document() modifications. It only states the output categories (errors, warnings, notes).

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 compact sentences with the action front-loaded and the outcome second. Nothing is padded, though the second sentence partially restates what an R CMD check inherently produces.

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?

With no annotations and no output schema, an agent still lacks runtime expectations, side-effect disclosure, and any indication of what the result looks like or how failures surface. Adequate for identifying the action but thin for a potentially slow, mutating operation.

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%, and the default/enum values for cran, document, error_on, and project_path are fully documented in the schema itself. The description adds no additional meaning about these parameters, so the baseline of 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?

The description names a specific verb and resource ('Run R CMD check on the package') and even specifies the underlying implementation (devtools::check()). It is clearly distinguishable from siblings like test or build, though it does not explicitly contrast with them.

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 through the phrase 'prevent CRAN submission', which suggests running this before release. There is no explicit guidance on when to prefer this over test or test_dir, and no mention of prerequisites such as needing an installed/loadable package or an absolute project path.

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