Skip to main content
Glama

Dev environment snapshot

get_session_snapshot
Read-onlyIdempotent

Diagnoses a broken local dev environment in one call, returning a health verdict, likely cause, suggested fix, framework, git state, ports, recent log errors, and runtime versions.

Instructions

Diagnoses the user's local dev environment in one call: health verdict with the likely cause and a suggested fix, framework, git state (branch, uncommitted and conflicted files), dev server ports and who holds them, the 10 most recent log errors, and runtime versions. Call this first whenever the user reports something broken, before asking them what's wrong. Use the other tools only to dig deeper.

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_session_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the project root. Optional: defaults to the client's workspace root, or the server's working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / cwd / description
      Added value: +"Absolute path to the project root. Optional: defaults to the client's workspace root, or the server's working directory."
  2. First observedv0.1.0

TDQS

A4.5/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 behavior, so the safety profile is covered. The description adds valuable behavioral context beyond that: this is a single comprehensive call rather than a partial probe, and it front-loads diagnosis before clarification questions. It does not mention latency/cost of the aggregate call or any truncation of the "10 most recent log errors", which is the only real gap.

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: the first front-loads the full contents of the snapshot, the second front-loads the routing rule. The output enumeration is long but is the substantive payload, not padding, and no sentence restates the title or annotations.

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?

With no output schema, the description carries the full burden of explaining return values and does so concretely, listing every section of the snapshot including the health verdict with cause and suggested fix. For a zero-required-parameter diagnostic tool with rich annotations, nothing an agent needs to call it correctly is missing.

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 coverage is 100% and the single optional cwd parameter is fully documented in the schema, including its default fallback, so the baseline of 3 applies. The description adds nothing about cwd (e.g., when to pass it explicitly versus rely on the default), leaving the schema to do all the work.

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?

Specific verb ("Diagnoses") plus resource ("user's local dev environment") with an explicit enumeration of what the snapshot contains: health verdict, framework, git state, ports, recent log errors, runtime versions. An agent can tell exactly what this returns and how it differs from get_recent_errors or get_running_services, which cover only one slice each.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a decisive ordering rule ("Call this first whenever the user reports something broken, before asking them what's wrong") and an explicit boundary against the alternatives ("Use the other tools only to dig deeper"). The when-to-use condition and the when-not-to-use relationship are both stated outright.

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