Skip to main content
Glama
ShadowGit MCP Server

ShadowGit MCP Server

Read docs pages

get_docs
Read-onlyIdempotent

Fetches ShadowGit documentation pages for a tracked project’s map areas and Overview, returning their facts, current text, and recent changes to identify pages whose words are missing or behind.

Instructions

Read the docs pages ShadowGit keeps for a tracked project: one per area of its map, plus an Overview, each written by an assistant. A page comes with the facts ShadowGit draws from the map (folder, sizes, layers, what it depends on and what depends on it, processes, its most depended-on symbols, the project's rules that name it), its words so far with who wrote them and at which snapshot, and what changed in the area since them: symbols changed in their code, dependency facts, links that no longer name anything. With no arguments: the pages your latest session changed whose words are missing or behind. With base and head: the pages changed between those snapshots whose words are missing or behind. With areas, and overview: those pages. With all: pages without words, largest area first, five at a time, with more for the following batch. Answers head, the snapshot write_docs keeps the words at, and next: write the pages' words with write_docs. Needs the ShadowGit app running.

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

Input Schema

NameRequiredDescriptionDefault
allNoPages without words, five at a time
baseNoWith head: the pages changed between these snapshots, as get_lens names them; null from the start of the history
headNoWith base: the newer snapshot
moreNoThe more get_docs answered with all, as given: the following batch
repoNoProject name or absolute path. Defaults to the current project.
areasNoArea ids, as get_docs names them: most are the area's folder, as get_map lists it
overviewNoThe Overview page, alone or with areas

Output Schema

NameRequiredDescriptionDefault
headYesThe newest snapshot, which write_docs keeps the words at
moreYesFor all: the following batch, to pass back as more; null at the last
nextNoThe step that follows: write these pages with write_docs
repoYes
pagesYes
limitsYes
mapAsOfYesThe snapshot the answer is drawn from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • addedInput schema / properties / base
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9a-f]{7,40}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "With head: the pages changed between these snapshots, as get_lens names them; null from the start of the history"
      +}
    • addedInput schema / properties / head
      Added value: +{
      +  "description": "With base: the newer snapshot",
      +  "pattern": "^[0-9a-f]{7,40}$",
      +  "type": "string"
      +}
  2. Addedv2.6.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds real behavior beyond that: page composition, batching semantics ('five at a time, with more for the following batch'), the returned head/next fields, and the prerequisite 'Needs the ShadowGit app running.' It stops short of describing cost or latency for large reads.

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?

Purpose and prerequisites are front-loaded, but the middle is a long run-on chain of clause-separated mode descriptions ('With no arguments... With base and head... With areas, and overview... With all...') that is dense and hard to scan. The content mostly earns its place, but the structure would benefit from breaking the modes into discrete lines.

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 7-parameter, multi-mode tool with a nested 'more' cursor and an output schema, the description covers every mode, pagination, the returned head/next, and the runtime prerequisite. With an output schema present it needn't explain return shapes, and it doesn't try. The only gap is guidance on discovering area ids via get_map/get_lens, which is deferred to the schema.

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 would be 3, but the prose adds meaning the schema does not: what the zero-argument default returns, that 'all' sorts by largest area and pages in fives, and that 'head' is the snapshot write_docs writes words at. The relationship between base/head and get_lens naming is only in the schema, not the description.

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?

Opens with a specific verb and resource: 'Read the docs pages ShadowGit keeps for a tracked project,' and states what a page contains (map facts, words with authors/snapshots, changes since). It is clearly a read tool distinct from write_docs, which is named as the follow-up. The core purpose is clear, though it takes several sentences of mode enumeration to get to it.

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?

Explicitly maps each argument combination to a behavior: no arguments returns pages the latest session changed with missing/behind words; base+head returns pages changed between snapshots; areas/overview returns those pages; all returns pages without words, largest first, five at a time. It also names write_docs as the next step. It does not, however, say when to prefer this over get_map or get_lens for finding area ids, leaving that to the schema.

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