Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

use_mit_license

Add an MIT LICENSE file to an R package and update the DESCRIPTION License field, optionally specifying the copyright holder.

Instructions

Add an MIT LICENSE file and update DESCRIPTION License field using usethis::use_mit_license().

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

Input Schema

NameRequiredDescriptionDefault
project_pathYesAbsolute path to the root of the R package.
copyright_holderNoName to include in the copyright notice (defaults to package author).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the two side effects (creating LICENSE, editing DESCRIPTION), which is the most important behavioral fact for a mutation tool. However, it does not say whether an existing LICENSE or License field is overwritten, whether it requires a clean git state or authorship metadata, 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?

A single front-loaded sentence that states the outcome immediately with no filler. The trailing usethis::use_mit_license() reference is mild redundancy with the tool name but does anchor the behavior to a known function.

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 two-parameter tool with full schema coverage and no output schema, the description covers the essential outcome and files touched. The remaining gap is mutation edge cases (existing file handling, error conditions), which is a modest omission rather than a blocker.

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 project_path and copyright_holder are already fully documented in the schema, including the 'defaults to package author' behavior. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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

Purpose5/5

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

Names a specific verb (Add) plus the concrete artifacts affected: an MIT LICENSE file and the DESCRIPTION License field. Because the license type is stated explicitly, an agent can distinguish this from sibling use_gpl3_license without opening either schema.

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 license type implies when to reach for it (MIT licensing for an R package) versus the GPL sibling, but there is no explicit when-to-use/when-not guidance and no stated prerequisites such as the project already being an R package.

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