Skip to main content
Glama

MemorySnapshotGet

Inspect one memory snapshot view—header, memory by kind, object ranking, children, or referrers—to diagnose ABAP memory usage and identify what an object holds or what holds it.

Instructions

[read-only] [debug] One memory snapshot in a view: header, memory by kind, largest objects, an object's children or its referrers. Needs the memory snapshot authorization. Runs outside batch mode.

Input Schema

NameRequiredDescriptionDefault
keyNoObject key, for children and references.
viewNoheader: the snapshot; overview: memory by kind; ranking: the largest objects; children: what an object holds; references: what holds an object.overview
detailNoHow much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).terse
max_objectsNoObjects in a ranking, children or references answer.
snapshot_idYesSnapshot id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv20.1.0

TDQS

A3.8/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 behavioral burden and does well: it declares the tool read-only, notes the required authorization, and states that it runs outside batch mode. It does not describe error behavior or limits, but the key safety and execution constraints 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 compact, front-loads the read-only/debug tags, and then gives the core purpose in a single sentence. Every phrase contributes useful information without redundancy.

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 read-only debug tool with five fully described parameters and no output schema, the description is largely complete. It covers the available views and constraints, though it could say more about what a caller receives for each view or when a key is required.

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%, so the schema already documents all five parameters including enums and defaults. The description echoes the view options in prose but adds little semantic detail beyond what the schema provides, making the baseline 3 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 clearly identifies a read-only debug tool that retrieves one memory snapshot, and it enumerates the available views (header, overview, ranking, children, references). It distinguishes the resource from the sibling MemorySnapshotList implicitly by saying 'One memory snapshot', though it does not explicitly name the sibling alternative.

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 states operational constraints such as needing memory snapshot authorization and running outside batch mode, but it does not explicitly state when to choose this tool over MemorySnapshotList or MemorySnapshotDelta. Usage is implied by the single-snapshot focus.

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

Deploy Server

Other Tools