Skip to main content
Glama

ralph_doctor

Read-onlyIdempotent

Run environment diagnostics to verify git, node, pnpm, worktree support, and permissions, catching issues before starting PRD-driven coding agents.

Instructions

Run environment diagnostics. Checks git, node, pnpm, worktree support, and permissions. Run before ralph_start to catch issues early.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ralph_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
verboseNoInclude detailed version info and paths (default: false)
projectRootNoProject root directory to check (defaults to cwd)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.4

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine value by listing the five checks and framing the call as a pre-flight gate, but it never says how failures surface (thrown error vs. reported issues in output) or what a partial pass looks like — meaningful gaps for a diagnostic tool.

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?

Three short sentences, zero filler: purpose first, scope of checks second, timing guidance third. Nothing is repeated and the pre-flight framing is front-loaded where an agent will read it.

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 zero-required-parameter, read-only diagnostic with rich annotations, the description covers purpose, scope and timing adequately. The one remaining gap is that no output schema exists and the description does not hint at the shape of the result (pass/fail per check vs. free-form report), which an agent needs to interpret the answer.

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% and both optional parameters carry their own defaults and explanations (verbose, projectRoot), so the schema does the heavy lifting. The description mentions neither parameter and adds no meaning such as what verbose output contains or why one would override projectRoot rather than relying on cwd.

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?

Opens with a specific verb and resource ("Run environment diagnostics") and then enumerates exactly what is inspected: git, node, pnpm, worktree support, and permissions. That enumeration makes the opaque name 'ralph_doctor' unambiguous and clearly separates it from the lifecycle siblings (start/stop/status/merge).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

"Run before ralph_start to catch issues early" gives an explicit trigger condition and names the sibling it precedes, so the agent knows when to reach for it. It stops short of stating when NOT to run it (e.g. mid-run, or that it is unnecessary if the environment is already known good), so it is not a full 5.

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