Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

use_github

Create a GitHub repository for an R package and push it, with optional private or organisation settings; requires a GitHub PAT via GITHUB_PAT or gh_token().

Instructions

Create a GitHub remote for the package and push using usethis::use_github(). Requires a GitHub PAT configured via GITHUB_PAT or gh_token().

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_github"
  }
}

Input Schema

NameRequiredDescriptionDefault
privateNoCreate as a private repository (default false).
organisationNoGitHub organisation to create the repo under (optional, defaults to personal account).
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.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses that this is an outward-facing mutation (creates a remote repo and pushes), and it names the authentication requirement (GITHUB_PAT or gh_token()). It stops short of covering failure modes such as an existing remote, missing git initialization, or whether the repo is created publicly 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.

Conciseness4/5

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

Two compact sentences with the action front-loaded and the prerequisite trailing, no wasted wording. The function-name reference is useful for disambiguation rather than filler.

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 3-parameter mutation tool with no annotations and no output schema, the definition covers the action and the auth prerequisite but omits the precondition that a git repository must exist (use_git) and says nothing about what happens to an already-configured remote. Adequate but with a real workflow gap.

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 private, organisation, and project_path are already fully documented in the schema, and the description adds no syntax or format detail beyond that. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource: create a GitHub remote for the package and push to it, naming the underlying implementation usethis::use_github(). That is clearly distinct from the local-only sibling use_git, though the description never names that sibling explicitly to sharpen the contrast.

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 implied by 'for the package' and the stated PAT prerequisite, which tells the agent what must be configured before calling. There is no explicit guidance on when to prefer this over use_git or what to do if a remote already exists, so the agent must infer the workflow ordering.

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