Skip to main content
Glama
r-packagedev-mcp

r-packagedev-mcp

by B0ydT

spell_check

Check R package documentation and vignettes for spelling errors using devtools, with optional vignette checking.

Instructions

Spell-check the package documentation and vignettes using devtools::spell_check().

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

Input Schema

NameRequiredDescriptionDefault
vignettesNoWhether to spell-check 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

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. Referencing devtools::spell_check() gives the agent a concrete handle on the underlying behavior, but it omits whether the call fails on misspellings or merely reports them, what the response contains, and whether the package must be installed or loadable first.

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 sentence with zero padding, front-loading the action and scope before citing the implementation. Nothing is wasted or buried.

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 simple two-parameter tool with full schema coverage and no output schema, the description covers what the tool touches but is thin on outcome: it does not say what spell-check results look like or how they are surfaced, which is the main thing an agent needs to interpret the call.

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 both the vignettes toggle and project_path already documented in the schema. The description's mention of 'documentation and vignettes' loosely aligns with the vignettes flag but adds no syntax, format, or default detail beyond the schema, so baseline 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?

States a specific verb and resource pair ('Spell-check the package documentation and vignettes') and names the underlying implementation (devtools::spell_check). An agent can tell this apart from siblings like check, document, or test, though the description never explicitly contrasts itself 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?

The scope of what gets checked is implied by 'package documentation and vignettes', so usage is reasonably inferable, but there is no explicit when-to-use guidance (e.g., before CRAN submission or after editing roxygen docs) and no statement of when another sibling such as check or document would be more appropriate.

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