Skip to main content
Glama

Set ABAP Debugger Breakpoint

sap_set_breakpoint

Pause ABAP code execution at a chosen line by setting an external breakpoint, with an optional condition to trigger only when true.

Instructions

Set an external (ADT) breakpoint at a line in an ABAP object, for the user the debug session listens for (default SAP_USER).

Args:

  • object_type, object_name, line (required).

  • condition (optional): ABAP expression; break only when true. Best-effort — the condition attribute is not verified on this system.

  • function_group: required for object_type='function'.

  • response_format.

Returns (json): { success, breakpoints: [{id, clientId, uri, line, objectName, condition}], failed, message }. SAP resolves the source line to the line of the generated include, so the id may name a different LINE_NR than you asked for. That is normal.

Examples:

  • "Break on ZTEST line 42" -> object_type='program', object_name='ZTEST', line=42.

  • "Break on ZCL_FOO line 15 when SY-SUBRC <> 0" -> add condition="SY-SUBRC <> 0". Notes:

  • Works standalone: external breakpoints persist in SAP (table ABDBG_EXTDBPS) whether or not a debug session exists. They only TRAP execution while a listener is armed — call sap_debug_attach, then sap_debug_wait.

  • The ADT write is a FULL-SET SYNC: every call re-sends this server's whole breakpoint registry as the complete set for its identity. A consequence worth knowing: the first sap_set_breakpoint after a server restart drops breakpoints an earlier run left behind.

  • The breakpoint is keyed to the debug session's user. To trap another user's execution, pass that user to sap_debug_attach BEFORE setting breakpoints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesLine number to break on.
conditionNoOptional ABAP condition expression (e.g. "SY-TABIX = 5"). Break only when true.
object_nameYesObject name (e.g. 'ZPROG', 'ZCL_FOO').
object_typeYesObject kind: 'program', 'include', 'class', 'interface', or 'function'.
function_groupNoRequired when object_type='function'.
response_formatNoOutput format: 'markdown' (human-readable, default) or 'json' (structured).markdown
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only provide hints (readOnly=false, openWorld=true, etc.), so the description carries the burden of behavioral disclosure. It delivers extensive context: the FULL-SET SYNC write semantics and restart consequence, best-effort condition handling, the generated-include line mapping, the persistence table, and the requirement for an armed listener. This goes far beyond what the annotations convey.

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 front-loaded with the core purpose, then organized into Args, Returns, Examples, and Notes. Every sentence serves a purpose — behavioral caveats, workflow prerequisites, and parameter mapping — with no filler or repetition. Length is justified by the tool's complexity.

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

Completeness5/5

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

Given the absence of an output schema, the description explains the JSON return shape and the important line-number mapping caveat. It also covers persistence, session requirements, and user keying. For a setter tool with subtle side effects, nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value beyond the schema by correlating natural-language examples ('Break on ZTEST line 42') to concrete parameter assignments and by explaining the function_group requirement and the condition caveat. This is meaningful enrichment over the structured schema.

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-resource pair ('Set an external (ADT) breakpoint at a line in an ABAP object') and adds the user-scoping qualifier, which distinguishes it from sibling breakpoint tools like sap_list_breakpoints and sap_delete_breakpoints. The sentence about trapping execution only while a listener is armed further clarifies its distinct 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 gives clear operational context: breakpoints persist but only trap when a listener is armed, and it explicitly instructs to call sap_debug_attach then sap_debug_wait. It also explains the user-keying prerequisite for trapping another user's execution. It doesn't explicitly name alternatives for when to use a different tool, but the workflow guidance is sufficient for correct use.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/appmaster3000/sap-abap-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server