Skip to main content
Glama

get_repository_snapshot

Read-onlyIdempotent

Retrieve a specific repository snapshot by its ID and repository ID to re-read resolved revision, content hash, file counts, and graph artifact refs.

Instructions

Fetch one persisted immutable repository snapshot by repository_id and snapshot_id, including its resolved_revision, content_hash, file_count, language_counts, and graph artifact refs. Use this to re-read a snapshot created earlier with create_repository_snapshot (or through run_repository_pipeline). Read-only; an unknown snapshot or repository id fails with not_found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
snapshot_idYesSnapshot id returned by create_repository_snapshot.
repository_idYesSaved repository connector id from list_connectors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.3
    • addedInput schema / properties / repository_id / description
      Added value: +"Saved repository connector id from list_connectors."
    • addedInput schema / properties / snapshot_id / description
      Added value: +"Snapshot id returned by create_repository_snapshot."
  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 readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds behavioral specifics beyond annotations: it states the snapshot is 'immutable' and 'persisted', lists the exact fields returned, and describes the error condition (not_found). This enriches the behavioral understanding without contradicting annotations.

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?

The description is two sentences with zero fluff. The core action and returned fields are front-loaded in the first sentence, and the second sentence provides usage context and error behavior. Every part earns its place.

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?

For a simple retrieval tool with two fully documented parameters and annotations covering safety, the description is complete. It covers what the tool returns, when to use it, how it relates to creation tools, and the error condition. No missing information is needed for correct invocation.

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 schema already documents both parameters with references to other tools (snapshot_id from create_repository_snapshot, repository_id from list_connectors). The description simply names the parameters in the first sentence but adds no new format, constraints, or semantics beyond what the schema provides, 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?

The description states a specific verb (Fetch) and resource (persisted immutable repository snapshot), identifies the two required identifiers, and lists the returned fields. It also distinguishes itself from creation tools by mentioning create_repository_snapshot and run_repository_pipeline, making its purpose unambiguous.

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?

It explicitly instructs when to use the tool: 'Use this to re-read a snapshot created earlier with create_repository_snapshot (or through run_repository_pipeline).' This gives clear context and implies it is for retrieval, not creation. It also notes the failure mode for unknown ids, adding practical usage guidance.

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