Skip to main content
Glama

analyze_r_workspace

Read-only

Analyze supplied R project text to inspect workspace files and dependencies without reading filesystem paths or exposing .Renviron values.

Instructions

Analyze supplied project text; never reads paths or exposes .Renviron values.

Input Schema

NameRequiredDescriptionDefault
filesYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is partly covered. The description adds real behavioral context beyond that: it never reads filesystem paths and never exposes .Renviron secrets, which tells the agent about both input expectations and a privacy guarantee.

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 compact sentence with the safety guarantee front-loaded and zero filler. Nothing could be removed without losing meaning.

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?

An output schema exists, so return values needn't be explained, but the tool takes a nested object and performs unspecified analysis. The description omits what the analysis covers, any input size limits, and how the file map is keyed, leaving gaps for a structurally complex tool.

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 0% and the single 'files' parameter is a nested object with no documented structure. The phrase 'supplied project text; never reads paths' does compensate somewhat by signaling that values are content maps rather than paths, but it doesn't explain the filename-to-text mapping.

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

Purpose3/5

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

It names a specific verb ('analyze') and resource ('supplied project text') and distinguishes the input mode from path-reading tools, which helps separate it from siblings. But 'analyze' is vague about what analysis is actually performed, so an agent knows the target but not the outcome.

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?

There is no statement of when to use this tool versus the many sibling analyze_* tools (analyze_shiny_app, analyze_quarto_project, etc.) or when not to. The only implied usage comes from 'project text' in the description.

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