Skip to main content
Glama

claude_healthcheck

Verify local Claude Code CLI readiness without invoking an LLM by checking binary discovery, version, auth, defaults, MCP mode, jobs, timeouts, and optional workspace state.

Instructions

Zero-cost readiness check for local Claude Code CLI. Verifies binary discovery, claude --version, ~/.claude auth directory, model/effort defaults, strict MCP mode, active jobs, timeout/session settings, and optional workspace .agents/state continuity status (including workspace-brief presence and open issues counts) without invoking any LLM.

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

Input Schema

NameRequiredDescriptionDefault
workspace_dirNoOptional workspace directory to inspect .agents/state/plan-history.md and session-index.json (read-only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 burden and does well: it discloses that the check is free and invokes no LLM, that it inspects the local auth directory and settings, and that workspace inspection is optional and read-only. It stops short of stating whether the tool itself is entirely non-mutating or what a failing check looks like, so it is strong but not complete.

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?

The core purpose and cost model are front-loaded in the first clause, and the long verification list is dense but each item is informative. It is a single run-on sentence that would read better as a short list, but there is no filler or redundancy.

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 diagnostic tool with no annotations and no output schema, the description explains what is checked but not what comes back — no indication of pass/fail reporting, per-check result structure, or how failures are surfaced. Enough to call it correctly, but not enough to interpret its results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it specifies that workspace_dir drives continuity status including workspace-brief presence and open-issue counts, which the schema's file-list phrasing does not convey. The 'optional' nature is also reinforced in prose.

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?

States a specific verb and resource ('readiness check for local Claude Code CLI') and enumerates exactly what it verifies: binary discovery, --version, auth directory, model/effort defaults, strict MCP mode, active jobs, timeout/session settings, and optional workspace continuity. The phrase 'without invoking any LLM' cleanly separates it from the execute-style siblings, so an agent can identify it without opening the 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 'zero-cost' and 'without invoking any LLM' framing implies this is the pre-flight/diagnostic option when you want to avoid spending a model call, but no explicit when-to-use or when-not statement is given. It also doesn't route the agent between this and the similarly named claude_verify or agy_healthcheck, leaving the choice to inference.

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