Skip to main content
Glama

snapshot

Capture a region of process memory at a specified virtual address and size for analysis, comparison, or debugging within a session.

Instructions

Take a memory snapshot.

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": {
      "va": "<va>",
      "size": "<size>"
    },
    "name": "snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
pidNo
sizeYes
labelNo
sessionNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses almost nothing. It does not state whether a snapshot artifact is created or stored, whether it requires an active attach session, what the session/pid scoping means, or any size/cost constraints. The only information conveyed is that some memory-capture action occurs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single short sentence is front-loaded and free of padding, but its brevity is under-specification rather than conciseness. There is no room left for the scoping, prerequisite, or parameter context an agent needs.

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

Completeness1/5

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

With five parameters, no annotations, no output description in the text, and a capture operation that likely depends on prior session state, this definition is far too thin. Even granting that an output schema documents return values, the agent is left without any guidance on inputs or preconditions.

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

Parameters1/5

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

Schema description coverage is 0% across five parameters, and the description mentions none of them. Nothing explains what "va" format is expected, whether size is in bytes, what pid or session control, or what label is used for. The description adds zero meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Take a memory snapshot" essentially restates the tool name (snapshot) with the word "memory" added. It does not say what memory is captured — a region at a virtual address, a whole process, a module — nor how it differs from the sibling snapshot_module. An agent cannot tell which of the two snapshot tools to pick from this text alone.

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?

There is no when-to-use guidance, no prerequisite (e.g., must be attached to a process first, as the sibling attach tool suggests), and no mention of alternatives such as snapshot_module or dump_region. Usage must be entirely inferred from the parameter names.

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