Skip to main content
Glama

snapshot_module

Captures every mapped region of a module as a baseline for later diff comparisons to detect memory changes.

Instructions

Snapshot every mapped region of a module (baseline for diff_module).

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": {
      "module": "<module>"
    },
    "name": "snapshot_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
labelNo
moduleYes
sessionNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses scope (all mapped regions, not a subset), but says nothing about side effects, whether snapshots persist per session, how the `label` is used, or whether a process must be attached first.

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?

A single front-loaded sentence with the scope statement first and the purpose parenthetical second; nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with zero schema coverage and no annotations, the description leaves too much unresolved — no parameter meanings, no session/pid behavior, no note on side effects. The existing output schema covers return values, but the invocation-side gaps remain substantial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 4 parameters, so the description must compensate — yet it only implies the `module` argument via the scope wording. `pid`, `session`, and `label` receive no explanation of meaning or defaults.

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?

Uses a specific verb (Snapshot) with a precisely scoped resource (every mapped region of a module), which distinguishes it from the process-wide `snapshot` sibling and from `capture_module`. The parenthetical naming `diff_module` further pins down intent, though it does not explicitly contrast with the similarly named siblings.

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?

Gives one concrete usage context — acting as the baseline for `diff_module` — which implies when to reach for it. It offers no exclusions (e.g., when to use `capture_module` or plain `snapshot` instead) and no prerequisites such as needing the module already loaded or captured.

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