Skip to main content
Glama

agentsnap-mcp

npm tests mcp

An MCP server that gives AI assistants the ability to inspect, normalize, diff, and validate agent tool-call traces.

Built on top of @mukundakatta/agentsnap. Works with Claude Desktop, Cursor, Cline, Windsurf, Zed, and any other MCP client.

Tools exposed

normalize_trace

Coerce a raw tool-call trace into the canonical agentsnap Trace shape and compute a deterministic SHA-256 fingerprint hash. Use this to compare runs cheaply or feed downstream diff tools.

{
  "trace": [
    { "name": "search", "args": { "q": "cats" } },
    { "name": "fetch",  "args": "https://example.com" }
  ],
  "input": "find cats",
  "model": "claude-opus-4-7"
}

{
  "normalized": {
    "version": 1,
    "model": "claude-opus-4-7",
    "input": "find cats",
    "output": null,
    "tools": [
      { "name": "search", "args": { "q": "cats" } },
      { "name": "fetch",  "args": "https://example.com" }
    ],
    "error": null,
    "fingerprint": { "node": "v22.0.0", "agentsnap": "0.1.0" }
  },
  "hash": "sha256:..."
}

diff_traces

Diff a baseline trace against a current run. Returns a uniform additions / removals / changes vocabulary plus the agentsnap status code (PASSED, OUTPUT_DRIFT, TOOLS_REORDERED, TOOLS_CHANGED, REGRESSION). Use ignore_paths to silence noisy fields before classification.

{
  "baseline": { "version": 1, "tools": [{ "name": "search", "args": { "q": "cats" }, "result_hash": "sha256:aaa" }], "error": null, "fingerprint": {...} },
  "current":  { "version": 1, "tools": [{ "name": "search", "args": { "q": "cats" }, "result_hash": "sha256:bbb" }], "error": null, "fingerprint": {...} },
  "ignore_paths": ["tools[].result_hash"]
}

{ "same": true, "status": "PASSED", "additions": [], "removals": [], "changes": [] }

validate_snapshot

Sanity-check a snapshot against the agentsnap Trace schema. Verifies required fields, tool-entry shape, and surfaces actionable issues. Returns valid=true on success or a list of human-readable problems.

Related MCP server: Execution Journal

Install

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agentsnap": {
      "command": "npx",
      "args": ["-y", "@mukundakatta/agentsnap-mcp"]
    }
  }
}

Cursor / Cline / Windsurf / Zed

Same shape, in the appropriate mcp.json for your client. Most clients auto-discover via npx -y @mukundakatta/agentsnap-mcp.

Local install

npm install -g @mukundakatta/agentsnap-mcp
mcp-agentsnap        # listens on stdio

Why this matters

Agents that call tools drift silently. A tool argument changes shape, a nondeterministic result flips a downstream branch, an extra tool sneaks in between releases — none of it shows up in unit tests. agentsnap captures the trace; this MCP server lets your assistant inspect and reason about traces directly: normalize one, diff two, or validate a saved snapshot, all from the model's tool-use surface.

License

MIT.

Available Tools

3 tools
diff_tracesA

Diff two normalized agentsnap traces and surface meaningful differences. Returns same=true on a structural match, otherwise lists additions (paths only present in current), removals (paths only present in baseline), and changes (paths whose values differ). Use ignore_paths to drop noisy fields (e.g. ["fingerprint","tools[0].result_hash"]) before classification.

ParametersJSON Schema
NameRequiredDescriptionDefault
currentYesThe current run Trace object to compare against the baseline.
baselineYesThe baseline Trace object (typically loaded from a snapshot file).
ignore_pathsNoOptional list of path prefixes to drop from both traces before diffing. Each entry matches by exact prefix on the dotted path (e.g. "fingerprint" or "tools[2].result_hash").

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden. It transparently explains the output behavior (same=true on structural match, otherwise lists additions/removals/changes) and how ignore_paths alters classification. It stops short of detailing error handling or side effects, but for a read-only diff tool the critical behaviors are disclosed.

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 three sentences, front-loaded with the primary purpose. It efficiently includes return value breakdown and an actionable example for ignore_paths without any filler. Every sentence contributes meaningful guidance.

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?

Given no output schema, the description compensates by fully explaining the return structure (same, additions, removals, changes). It also covers the optional ignore_paths parameter with examples. It lacks explicit notes on assumptions (e.g., traces must be normalized), but the tool name itself conveys that, and the description is otherwise thorough for a diff utility.

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?

The schema already provides 100% coverage, describing each parameter with types and meanings (e.g., baseline is 'typically loaded from a snapshot file'). The description adds value by giving a concrete example for ignore_paths ('fingerprint','tools[0].result_hash') and clarifying its prefix-matching behavior, but baseline/current semantics are already well-covered in the schema, so the description only marginally extends beyond it.

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 clearly states the verb 'diff' and specific resource 'normalized agentsnap traces', distinguishing it from sibling tools like validate_snapshot and normalize_trace. It also explains the output categories (same, additions, removals, changes), leaving no ambiguity about its function.

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?

The description implies when to use the tool (comparing two traces) by explicitly naming the inputs and the purpose. It also gives practical guidance on using ignore_paths to drop noisy fields with a concrete example. While it doesn't explicitly contrast with sibling tools, the unique verb and resource make the usage context clear.

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

normalize_traceA

Coerce an arbitrary tool-call trace (an array of {name,args} entries or a partial Trace object) into the canonical agentsnap Trace shape. Returns the normalized trace plus a SHA-256 fingerprint hash computed over the canonical (key-sorted) JSON, so two runs can be byte-compared cheaply.

ParametersJSON Schema
NameRequiredDescriptionDefault
inputNoOptional input string to embed in trace.input.
modelNoOptional model identifier to embed in trace.model.
traceYesEither an array of tool-call entries (each {name, args, result?, error?}) or a partial Trace object with a tools[] field.
outputNoOptional output string to embed in trace.output.

TDQS

A4/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 of disclosure. It reveals key behavioral details: coercion into a canonical shape, key-sorting for JSON, SHA-256 hashing, and the return of a normalized trace plus fingerprint. It does not mention error handling or mutation behavior, but these are less critical for a pure normalization function and the disclosed details are substantive.

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, front-loaded with the primary action, then the return value and a rationale for the fingerprint. Every word earns its place, with no filler. The length is appropriate for the tool's complexity.

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?

The description covers the core behavior and return value, which is essential given there is no output schema. It explains the purpose of the fingerprint (byte-comparison) and the canonicalization process. Missing details include error handling and relationship to sibling tools, but overall it is a self-contained and sufficient description for an agent to invoke the tool correctly.

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 the baseline is 3. The description adds conceptual meaning (e.g., 'coerce', 'canonical', 'key-sorted JSON') that enriches parameter understanding, but it does not annotate individual parameters beyond the schema. The schema already describes 'trace' as either an array or partial Trace, and input/output/model fields are self-explanatory. The description does not need to compensate.

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 uses the specific verb 'Coerce' and clearly identifies the resource ('arbitrary tool-call trace') and the goal ('canonical agentsnap Trace shape'). It also distinguishes itself from sibling tools (validate_snapshot, diff_traces) by focusing on normalization and fingerprinting, not validation or diffing.

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

Usage Guidelines3/5

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

The description implies usage scenarios ('so two runs can be byte-compared cheaply') but does not explicitly state when to use this tool versus alternatives like diff_traces or validate_snapshot. No exclusions or preconditions are mentioned, leaving the agent to infer that normalization is a prerequisite for other operations.

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

validate_snapshotA

Sanity-check a snapshot object against the agentsnap Trace schema. Verifies required fields (version, tools, fingerprint), tool-entry shape (name + args), and surfaces actionable issues. Returns valid=true on success, otherwise a list of human-readable issues.

ParametersJSON Schema
NameRequiredDescriptionDefault
snapshotYesA snapshot object — typically the JSON-decoded contents of a file written by expectSnapshot().

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It transparently discloses what it checks (required fields, tool-entry shape) and the return format (valid=true or list of issues). It does not mention side effects, but as a validation tool it inherently is non-mutating. It also does not detail edge-case behavior, but overall it is quite transparent.

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 long, front-loaded with the action and target, and every sentence provides value. No redundant or unnecessary words.

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 validation tool with a single parameter and no output schema, the description covers the purpose, validation criteria, and return format. It is sufficiently complete for an agent to understand the tool's behavior and what to expect.

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 schema already describes the snapshot parameter as a JSON-decoded object from expectSnapshot(). The tool description adds no extra parameter-specific details 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 clearly states the tool validates a snapshot object against the agentsnap Trace schema, specifying exactly what it verifies (required fields and tool-entry shape). It distinguishes itself from sibling tools normalize_trace and diff_traces, which serve different purposes.

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 provides clear context for when to use the tool: to sanity-check a snapshot against the schema. However, it does not explicitly name alternatives or specify when not to use it, though the sibling tool names imply other operations like normalization and diffing.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.0
    • First observeddiff_traces
    • First observednormalize_trace
    • First observedvalidate_snapshot

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct operation: validating a snapshot against a schema, normalizing arbitrary traces into canonical form, and diffing two normalized traces. There is no overlap or confusion between these purposes.

Naming Consistency5/5

All tool names follow a clear verb_noun pattern: validate_snapshot, normalize_trace, diff_traces. The naming is consistent, lowercase, and underscore-separated, making the toolkit predictable to navigate.

Tool Count4/5

Three tools is on the low end but appropriate for a focused trace-processing utility. Each tool serves a distinct, essential role in the pipeline, and the count does not feel lacking for the stated scope.

Completeness4/5

The set covers the core workflow of validate → normalize → diff, which is a coherent and useful surface. Minor gaps exist, such as no explicit tool for fetching or writing traces, but these are outside the apparent purpose of the server.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    MCP server that gives AI agents access to your application's OpenTelemetry traces for querying, analysis, and debugging.
    5
    16
    2
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that helps AI coordinate sequential tool calls and maintain a comprehensive journal of execution workflows, decisions, and actions.
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    An MCP server that gives AI agents observability over their own tool calls, enabling auditing, cost tracking, latency analysis, and alerting.
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that unpacks and structures Playwright trace.zip archives so AI agents can perform root-cause analysis on CI failures, with 16 focused tools for inspection, DOM/UI analysis, root-cause analysis, and performance analysis.
    19
    64
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MukundaKatta/agentsnap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server