Skip to main content
Glama
ShadowGit MCP Server

ShadowGit MCP Server

Write the Lens's words

write_lens_words
DestructiveIdempotent

Writes the user-facing words for a ShadowGit Lens change—summary, step titles and bodies, why/excerpt, and card roles—using the ids returned by get_lens.

Instructions

Write the words the user reads in ShadowGit's Lens for a change get_lens read: a summary, each step's title and body, with a why and an excerpt, each card's role, by the ids get_lens gave. An older ShadowGit takes plain text alone; text past its limit is cut; unknown ids are left out. The app keeps the words in its history: a card's role shows in any later change while its code is unchanged. When the session changed areas whose docs pages need words, the answer's next names them, the session's last step: get_docs, then write_docs.

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": {
      "base": "<base>",
      "head": "<head>"
    },
    "name": "write_lens_words"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesThe base get_lens answered (null: from the start of the history)
headYesThe head get_lens answered
repoNoProject name or absolute path. Defaults to the current project.
flowsNoPer flow: a verb phrase, e.g. "draws the map"
stepsNoPer step: a title naming what it does, and its words; a step's entry replaces everything written for that step before, so send its title, body, why and excerpt together
layersNoPer layer: a short name, where the default does not say where code runs
summaryNoWhat the change does and why, in two sentences
componentsNoPer changed card: the role it plays, in a few words

Output Schema

NameRequiredDescriptionDefault
nextNoThe step that follows: the docs pages the change touched
repoYes
appliedYes
ignoredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • changedInput schema / properties / flows / description
      Previous value: -"Per flow: a verb phrase, e.g. \"draws a range\""New value: +"Per flow: a verb phrase, e.g. \"draws the map\""
    • changedOutput schema / properties / next / description
      Previous value: -"The step that follows: the docs pages the session changed"New value: +"The step that follows: the docs pages the change touched"
  2. Changed1 schema field changedv2.6.1
    • addedOutput schema / properties / next
      Added value: +{
      +  "description": "The step that follows: the docs pages the session changed",
      +  "type": "string"
      +}
  3. Changed6 schema fields changedv2.2.0
    • changedInput schema / properties / steps / description
      Previous value: -"Per step: a title naming what it does, and one or two sentences"New value: +"Per step: a title naming what it does, and its words; a step's entry replaces everything written for that step before, so send its title, body, why and excerpt together"
    • addedInput schema / properties / steps / items / properties / body / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "properties": {
      +        "card": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +]
    • addedInput schema / properties / steps / items / properties / body / description
      Added value: +"One or two sentences: plain text, or pieces, where a piece with a card links that card of the step by its id, only where the text names it"
    • removedInput schema / properties / steps / items / properties / body / type
      Removed value: -"string"
    • addedInput schema / properties / steps / items / properties / excerpt
      Added value: +{
      +  "description": "At most 12 lines that changed, of one of the step's symbols as get_lens lists them: its path on that side, its name, the side and the lines",
      +  "properties": {
      +    "lines": {
      +      "properties": {
      +        "end": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "start": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end"
      +      ],
      +      "type": "object"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "path": {
      +      "type": "string"
      +    },
      +    "side": {
      +      "enum": [
      +        "base",
      +        "head"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "path",
      +    "name",
      +    "side",
      +    "lines"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / steps / items / properties / why
      Added value: +{
      +  "description": "Why, in the author's own words: one of get_lens's quotes, or part of one, word for word, within the why limit (a longer quote is left out, not cut); left out where none says why",
      +  "properties": {
      +    "quote": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "const": "commit",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "quote",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  4. Addedv2.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already mark the tool as destructive, idempotent, and non-read-only. The description adds concrete behavior: older ShadowGit accepts plain text only, over-limit text is cut, unknown ids are dropped, and written card roles persist in later changes. It does not fully spell out that step entries replace prior content in the main prose, and permissions are unaddressed, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively short but is a dense, run-on paragraph with tangled phrasing such as 'the answer's next names them, the session's last step'. The purpose is front-loaded, but readability and organization are weak and could be structured more clearly.

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 complex write tool, the definition gives purpose, workflow, compatibility behavior, and docs follow-up, while the output schema covers return values. Some destructive-replace semantics are mostly left to the schema and annotations, but not enough is missing to make the definition incomplete.

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%, so the detailed parameter meanings are already documented in the schema for base/head, summary, steps, why, excerpt, flows, layers, and components. The description reinforces the source of ids and the text-only fallback but adds little per-parameter semantics beyond what the schema provides. The baseline of 3 is appropriate.

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

Purpose4/5

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

The description opens with a specific verb and resource—'Write the words the user reads in ShadowGit's Lens'—and enumerates summary, step title/body, why, excerpt, and card role. It also ties the operation to ids from get_lens, distinguishing it from read-only and docs-writing siblings. The awkward, heavily compressed phrasing keeps it from being a clean 5.

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 implies the required workflow: obtain ids from get_lens and write back by those ids, and it names the docs follow-up of get_docs then write_docs when docs pages need words. It does not explicitly state when not to use the tool or enumerate alternatives, but the relevant context is clear.

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