Skip to main content
Glama

Get snapshot file tree

list_snapshot_files
Read-onlyIdempotent

List files and folders captured in a snapshot with their sizes, returning a flat entry list you can render as a tree.

Instructions

Get snapshot file tree. List the files and folders captured in a snapshot, with sizes. Returns a flat list of entries you can render as a tree.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "snapshotId": "<snapshotId>"
    },
    "name": "list_snapshot_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
snapshotIdYesSnapshot id returned by the snapshot list/latest calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds useful return-shape context by saying entries include sizes and form a flat list renderable as a tree, though it omits pagination, ordering, or depth/recursion behavior.

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?

The description is short, front-loaded, and wastes little space. The opening 'Get snapshot file tree' is somewhat redundant with the title, but it sets scope before the more useful details about flat entries and sizes.

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 simple read-only listing tool with full schema coverage and safety annotations, the description provides enough context to call it correctly, including the return shape. It could be stronger by clarifying recursion depth, ordering, or pagination, but those are minor gaps for this tool's complexity.

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 the single snapshotId parameter is documented as the uuid returned by snapshot list/latest calls. The description adds no parameter-level meaning beyond the schema, so the baseline score of 3 is appropriate.

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 states a specific verb and resource: list files and folders captured in a snapshot, with sizes. It distinguishes the scope from general file listing by emphasizing the snapshot context, though it does not name sibling alternatives such as list_files or read_snapshot_file.

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

Usage Guidelines2/5

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

The description implies the tool is used when you need a snapshot's file tree, but it provides no explicit when-to-use guidance, exclusions, or comparison with related tools like list_files and read_snapshot_file.

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