Skip to main content
Glama

get_log_snapshot

Read-onlyIdempotent

Retrieve a hashed event-log snapshot for a workspace so peers can verify a pruned prefix and resume without trusting the host for unseen history; optionally include the domain graph with admin access.

Instructions

Hashed event-log snapshot for this workspace (getRepo-shaped, not MST/CAR). Header plus graph_hash is workspace:read. Pass include_graph true for the domain graph; that requires token:admin. Complements hash-chain verify of the retained suffix: this covers a pruned prefix so a peer can resume without trusting the host for history it never saw.

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

Input Schema

NameRequiredDescriptionDefault
workspace_idNodefaults to the caller's workspace
include_graphNoinclude the domain graph; requires token:admin (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description goes further by disclosing access requirements (workspace:read for header plus graph_hash, token:admin when include_graph is true) and the resumption rationale for the pruned prefix. It stops short of describing payload size or whether the snapshot is stable across calls, which is the remaining gap.

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?

Four short sentences, purpose front-loaded, no filler. The density of unexplained domain acronyms slightly impairs readability, but nothing is redundant. It is appropriately sized for a two-parameter read tool.

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 tool with two optional parameters, no output schema, and full annotation coverage, the description supplies the essentials: what the snapshot contains, what access it needs, and why a peer would call it. The only omission is any sense of snapshot size or cost, which matters for a log-shaped payload but is secondary.

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 are already documented in-schema, including include_graph's admin requirement and default. The description's mention of include_graph and its token:admin requirement duplicates rather than extends the schema. Baseline 3 applies since the schema carries the parameter semantics.

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 resource and artifact: a hashed event-log snapshot for the workspace, explicitly qualified as getRepo-shaped rather than MST/CAR. That lets an agent tell it apart from the hash-chain verify path it says it complements. The jargon ('getRepo-shaped', 'MST/CAR') is unexplained, which keeps it from a 5, but the core purpose is unambiguous.

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 the alternative explicitly ('Complements hash-chain verify of the retained suffix') and the condition that selects this tool instead ('this covers a pruned prefix'). It also gives a conditional branch for include_graph with its own auth requirement. There is no 'do not use when' guidance, so it falls short of 5.

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

Deploy Server

Other Tools