Skip to main content
Glama

Workspace index

snapshot_workspace
Read-onlyIdempotent

Map workspace members and cross-repository imports from WORKSPACE.json to see which member depends on which before a change; read-only.

Instructions

The members of a multi-repository workspace and the imports that cross between them, from WORKSPACE.json. Answers which member depends on which before a change. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
rootNoRepository root. Defaults to the directory this server was started in.
outDirNoSnapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir.

Output Schema

NameRequiredDescriptionDefault
linksNo
membersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and idempotentHint, so the trailing 'Read-only' adds little. The description does add useful context about the data source (WORKSPACE.json), but it is silent on what happens when no workspace file exists and, notably, on whether the 'outDir' snapshot directory results in any files being written.

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?

Three short sentences, front-loaded with the resource and its source file, then the use case. The final 'Read-only' sentence duplicates the annotations and is the only wasted text.

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?

The output schema covers return values, so the description need not describe them. However, for a tool whose schema exposes an 'outDir' snapshot directory, the description should clarify whether any filesystem writes occur and how the tool behaves when WORKSPACE.json is absent.

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 root and outDir are already documented in the schema, including the containment requirement for outDir. The description adds no additional meaning for either parameter, so the baseline of 3 is appropriate.

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 resource (workspace members plus the cross-member imports) and its source of truth (WORKSPACE.json), plus the question it answers ('which member depends on which'). That distinguishes it from the sibling per-symbol dependency tools such as snapshot_dependents without naming them.

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?

'Answers which member depends on which before a change' gives a concrete usage moment at the workspace level. It does not state when the tool is not appropriate (e.g., single-repo case or per-symbol queries, where dependents/neighbors would be better), so no exclusions are supplied.

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