Skip to main content
Glama

MemorySnapshotDelta

Compare two ABAP memory snapshots to analyze memory by kind, find high-memory objects, and inspect an object's children or referrers when debugging leaks.

Instructions

[read-only] [debug] Two memory snapshots compared in a view: 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.
viewNooverview: memory by kind; ranking: the largest objects; children: what an object holds; references: what holds an object.overview
to_idYesSnapshot id to compare to.
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
from_idYesSnapshot id to compare from.
max_objectsNoObjects in a ranking, children or references answer.

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, the description carries the burden and does substantial work: it tags the tool as read-only and debug-scoped, and discloses the authorization requirement plus the batch-mode exclusion, which are real invocation constraints. It stops short of describing volume/performance or the shape of the comparison result.

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 dense sentences with the mode tags, the core operation, the available views, and the two hard constraints front-loaded. Nothing is padded or repeated across sentences.

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 six-parameter, no-output-schema tool, the description covers purpose, view taxonomy, authorization, and the batch-mode restriction, which is most of what an agent needs. The remaining gap is the relationship to the sibling snapshot tools and the size/format of the delta result.

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 all six parameters including the view and detail enums are already documented in the schema. The description paraphrases the views (memory by kind, largest objects, children, referrers) but adds nothing about from_id/to_id ordering, max_objects, or detail levels beyond what the schema states, so baseline 3 applies.

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 states a specific verb and resource: it compares two memory snapshots and returns one of four views. It clearly distinguishes a delta operation from single-snapshot reads, though it never names MemorySnapshotList or MemorySnapshotGet as the alternatives.

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?

Prerequisites are given (memory snapshot authorization required, must run outside batch mode), which tells the agent when it can call. But it never says when to prefer this over MemorySnapshotList/MemorySnapshotGet or DebugCreateMemorySnapshot, so the choice among snapshots is left to inference.

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