Skip to main content
Glama

Check Jujutsu Availability

git_jj_check
Read-onlyIdempotent

Detects whether the Jujutsu (jj) CLI is available and whether the repo is jj-managed, helping agents prefer jj for version control when git-mcp tools would only act on .git.

Instructions

Detect whether the Jujutsu jj CLI is available and whether the repository is jj-managed (has a .jj/ directory). When jj-managed, agents should prefer the jj CLI for all version control operations, since git-mcp tools operate on the underlying .git and will not reflect jj's change model.

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

Input Schema

NameRequiredDescriptionDefault
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A4.1/5.0
Behavior4/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 the safety profile is covered. The description adds meaningful behavioral context beyond that: what specifically is inspected (a `.jj/` directory) and the important consequence that git-mcp tools will diverge from jj's change model. It doesn't mention auth, rate limits, or return shape.

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?

Two sentences, both earning their place, with the detection target front-loaded and the agent-facing implication second. No filler or repetition of the title.

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?

There is no output schema, so the description is the only place the return values could be described, and it never states what the result looks like (e.g., boolean flags for CLI availability vs. repo management). Purpose and consequence are complete, but an agent cannot anticipate the response shape.

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% across both parameters, so the schema already explains `repo_path` fallback behavior and `response_format`. The description adds nothing parameter-specific, which is acceptable at the baseline but not above it.

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?

The description uses a specific verb ('Detect') and two concrete resources: the presence of the `jj` CLI and the presence of a `.jj/` directory marking a jj-managed repo. This clearly distinguishes it from sibling probes like git_but_check and git_entire_check, which check different tooling.

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?

It gives explicit downstream routing: when the repo is jj-managed, agents should prefer the `jj` CLI over git-mcp tools, and it explains why (git-mcp operates on the underlying .git and won't reflect jj's change model). It stops short of stating when in a workflow to run this check or naming sibling check tools as alternatives.

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