Skip to main content
Glama
ShadowGit MCP Server

ShadowGit MCP Server

Start a ShadowGit session

start_session
Idempotent

Pause automatic ShadowGit snapshots for a project so related edits are grouped into one titled snapshot instead of several partial ones; start it before making changes and use checkpoint to save.

Instructions

Pause ShadowGit's automatic snapshots for a project while you make a set of related edits, so they can be saved as one snapshot with a title instead of several partial ones. A session is what the person then reviews in ShadowGit: start one when they ask you to start a ShadowGit session. Returns the existing session if one is already active. Needs the ShadowGit app running. To save the edits and resume snapshots, use checkpoint and end_session.

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": {
      "description": "<description>"
    },
    "name": "start_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoProject name or absolute path. Defaults to the current project.
descriptionYesWhat you are about to change, e.g. "Fix login redirect"

Output Schema

NameRequiredDescriptionDefault
repoYes
reviewNoWhen the person has sent review comments still open: how many, and when to read them
session_idYes
already_activeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.9.0
    • addedOutput schema / properties / review
      Added value: +{
      +  "description": "When the person has sent review comments still open: how many, and when to read them",
      +  "type": "string"
      +}
  2. Changed8 schema fields changedv2.1.1
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / description / description
      Previous value: -"What you plan to do in this session"New value: +"What you are about to change, e.g. \"Fix login redirect\""
    • addedInput schema / properties / description / maxLength
      Added value: +200
    • addedInput schema / properties / description / minLength
      Added value: +1
    • changedInput schema / properties / repo / description
      Previous value: -"Repository name"New value: +"Project name or absolute path. Defaults to the current project."
    • addedInput schema / properties / repo / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "repo",
      -  "description"
      -]New value: +[
      +  "description"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "already_active": {
      +      "type": "boolean"
      +    },
      +    "repo": {
      +      "type": "string"
      +    },
      +    "session_id": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "session_id",
      +    "repo",
      +    "already_active"
      +  ],
      +  "type": "object"
      +}
  3. Addedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the side effect on automatic snapshots, the user-review purpose of the object, and an environmental prerequisite ("Needs the ShadowGit app running"). It also explains the idempotent behavior in words ("Returns the existing session if one is already active"), which adds meaning to the hint rather than repeating it.

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 purpose is front-loaded in the first sentence, followed by the trigger, the idempotent-return note, the prerequisite, and the follow-up tools. Every sentence carries information, though the snapshot-grouping rationale is slightly wordy relative to its value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 need not be explained, and annotations cover the safety profile. The description fills the remaining gaps: when to start, the side effect on automatic snapshots, behavior when a session already exists, and the environmental prerequisite.

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%, and both parameters (`repo`, `description`) are documented in the schema, so the baseline is 3. The prose adds nothing about the parameters — no guidance on how detailed the `description` should be or when to pass `repo` explicitly.

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 and resource: "Pause ShadowGit's automatic snapshots for a project" while making related edits so they group into one titled snapshot. It also distinguishes the tool from its siblings by naming `checkpoint` and `end_session` as the follow-up tools, so an agent can tell what this tool does and does not do without opening the schemas.

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 states a clear trigger ("start one when they ask you to start a ShadowGit session") and routes the agent to alternatives for the next step ("To save the edits and resume snapshots, use `checkpoint` and end_session"). It does not say when a session is unnecessary — for example, a single trivial edit — so there is no explicit exclusion.

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