Skip to main content
Glama

run_snapshot

Run tests and save passing results as a new golden baseline for future regression checks. Use it after intentional behavior changes or new tests to lock in expected agent output.

Instructions

Run tests and save passing results as the new golden baseline. Use this to establish or update the expected behavior after an intentional change. Future run_check calls will compare against this snapshot. Call this: (1) after creating a new test with create_test, (2) after confirming a behavioral change is intentional, (3) before making large refactors so you have a clean rollback point. Only passing tests are saved — failing tests are skipped with a warning. IMPORTANT: Automatically detect test_path by looking for a 'tests/evalview/' directory in the current project. If it exists, pass it as test_path.

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

Input Schema

NameRequiredDescriptionDefault
testNoSnapshot only this specific test by name (optional, snapshots all by default)
judgeNoJudge model for scoring (e.g. 'gpt-5', 'sonnet').
notesNoHuman-readable note about why this snapshot was taken
resetNoReplace existing baselines once every selected test passes. Default: false.
previewNoShow what would change without saving (dry-run mode). Default: false.
timeoutNoTimeout per test in seconds (default: 30).
variantNoSave as named variant for non-deterministic agents (max 5 per test). E.g. 'v2', 'async-path'.
test_pathNoPath to the test directory. Auto-detect: use 'tests/evalview/' if it exists, otherwise 'tests'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • changedInput schema / properties / reset / description
      Previous value: -"Delete all existing baselines before capturing new ones. Default: false."New value: +"Replace existing baselines once every selected test passes. Default: false."
  2. Changed5 schema fields changedv0.7.1
    • addedInput schema / properties / judge
      Added value: +{
      +  "description": "Judge model for scoring (e.g. 'gpt-5', 'sonnet').",
      +  "type": "string"
      +}
    • addedInput schema / properties / preview
      Added value: +{
      +  "description": "Show what would change without saving (dry-run mode). Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / reset
      Added value: +{
      +  "description": "Delete all existing baselines before capturing new ones. Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "Timeout per test in seconds (default: 30).",
      +  "type": "number"
      +}
    • addedInput schema / properties / variant
      Added value: +{
      +  "description": "Save as named variant for non-deterministic agents (max 5 per test). E.g. 'v2', 'async-path'.",
      +  "type": "string"
      +}
  3. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key traits: only passing tests are persisted, failures are skipped with a warning, and future run_check calls compare against the saved baseline. It stops short of describing the response payload, side effects on disk, or what happens to existing baselines when reset is false, so it is strong but not complete.

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?

Purpose and usage are front-loaded and the numbered trigger list is efficient. The closing 'IMPORTANT' block on test_path is somewhat verbose and duplicates the schema, slightly diluting an otherwise tight definition.

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 an 8-parameter, zero-annotation mutation tool, the description covers when to call it, what is persisted, and the critical path-detection step. Since there is no output schema, it would ideally say what the call returns or how to confirm the snapshot was written, which is the main remaining gap.

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%, so every parameter is already documented, making 3 the baseline. The description's only parameter-level contribution is the test_path auto-detection instruction, which largely restates what the schema already says ('Auto-detect: use tests/evalview/ if it exists'), adding emphasis rather than new meaning.

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+resource ('Run tests and save passing results as the new golden baseline') and explicitly contrasts the outcome with the sibling 'run_check', which compares rather than establishes. An agent can distinguish snapshot-establishment from check-comparison without opening either schema.

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 gives an explicit numbered when-to-use list (after create_test, after confirming an intentional behavioral change, before large refactors) and names the counterpart tool whose future behavior depends on this call. Exclusions are implied by 'only after intentional change', which is close to explicit.

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