Skip to main content
Glama

abap_debug_vars

Read-only

Surveys every variable in scope at an ABAP debugger stop, returning complex values as stubs. Filter variables by name and scope to focus on relevant data.

Instructions

Survey of every variable in scope at a debugger stop; complex values come back as abap_debug_value stubs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoDefault all.
filterNoSubstring match on name.
stateIdYesFrom the most recent start/step/stack/frame response (12-char token; full id or a prefix of at least 8 chars also accepted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.25
    • changedInput schema / properties / stateId / description
      Previous value: -"From the most recent start/step/stack/frame response."New value: +"From the most recent start/step/stack/frame response (12-char token; full id or a prefix of at least 8 chars also accepted)."
  2. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark the tool as read-only, so safety is covered. The description adds meaningful behavioral context beyond annotations by disclosing that complex values are returned only as stubs, which is critical for an agent to know before invoking the tool.

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 sentence conveys the purpose, timing, and an important output characteristic with no filler. The key behavioral fact is front-loaded.

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 survey tool, the description covers input context via the schema, and the return behavior via the stub note. Without an output schema, it could also explain what primitive values look like or how to dereference stubs, but the sibling name abap_debug_value plus the stub statement gives enough direction for correct invocation.

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 fully documents stateId, scope, and filter. The description adds no parameter-level detail, but none is needed because the structured schema already carries that burden.

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 a specific verb ('survey') and resource ('every variable in scope at a debugger stop'), clearly distinguishing this tool from sibling abap_debug_value, which is meant for individual value inspection. The mention of complex values returning as abap_debug_value stubs further disambiguates its role.

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 clearly scopes usage to a debugger stop, which is the essential precondition. It stops short of explicitly saying 'use abap_debug_value instead for inspecting a single value,' though that alternative is strongly implied by the stub behavior.

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