Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

build

Create a source or binary tarball for an R package, specifying destination, binary output, and vignette inclusion.

Instructions

Build a source (or binary) package tarball using devtools::build().

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

Input Schema

NameRequiredDescriptionDefault
pathNoDestination directory for the built tarball/zip (defaults to the parent of the package directory).
binaryNoWhether to build a binary package instead of source (default false).
vignettesNoWhether to build vignettes (default true).
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.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden, and it does identify the underlying devtools::build() call, which tells an experienced agent the operation writes a tarball artifact to disk. It does not, however, mention side effects such as overwriting an existing tarball or where the file lands by default.

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?

A single front-loaded sentence with no filler and no redundancy; every word contributes to identifying the action.

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 low-complexity wrapper with complete schema documentation and no output schema, the description covers what the tool produces and how. The only meaningful gap is the absence of workflow guidance, which is a usage rather than a completeness concern.

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 all four parameters including path, binary, and vignettes are already documented in the schema. The description adds only the source/binary distinction, which the schema also covers, so it earns the baseline without extending meaning.

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 (build) and resource (package tarball) and clarifies both source and binary variants, which separates it from siblings like check or install. It does not explicitly distinguish itself by naming an alternative, but the action 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 Guidelines2/5

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

The description gives no when-to-use guidance: it does not say this runs after document(), before check(), or why you would choose it over install. Usage is only implied by the verb itself.

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