Skip to main content
Glama

Detach ABAP Debugger Session

sap_debug_detach
Idempotent

Ends an active SAP debug session, releases the paused user, clears breakpoints, and removes listener registrations to leave no trace.

Instructions

End a debug session and leave nothing behind on SAP. ALWAYS call this when done — a frozen debuggee is a real user session that cannot continue, and an armed listener keeps trapping that user's execution.

Cleanup, in order, each step best-effort and reported individually:

  1. clear the breakpoints this server set (empty full-set sync);

  2. release the frozen debuggee ('continue'; if that fails for any reason other than the program having ended, drop its ABAP session to force the release);

  3. log the stateful debug connection off;

  4. delete the listener registration;

  5. verify — re-check the scope and confirm nothing remains.

Args:

  • session_id (string).

  • response_format.

Returns (json): { sessionId, breakpointsCleared, debuggeeReleased, listenerDeleted, verified, message }. verified=false means the check could not confirm the listener is gone: call again.

Idempotent — safe to call twice, and safe to call on a session that already ended.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession ID from sap_debug_attach.
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?

The description goes well beyond the annotations, disclosing the exact ordered cleanup steps, best-effort semantics, individual reporting, the fallback of dropping an ABAP session, and the meaning of verified=false. It also reinforces the idempotentHint annotation with concrete detail about repeated failed calls.

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 detailed but well-organized: leading warning, numbered cleanup steps, argument list, return summary, and idempotence note. Every sentence earns its place, and critical information is front-loaded in the first line.

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?

For a cleanup tool with no output schema, the description fully explains return fields, failure semantics, retry behavior, and side effects. It even covers the preconditions implicitly by referencing the session_id from sap_debug_attach and the stateful debug connection.

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 the schema already fully documents both session_id and response_format. The description's Args list adds little beyond what the schema provides, though it does reinforce the required nature of session_id and the output format choices.

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 opens with a specific verb and resource: 'End a debug session and leave nothing behind on SAP.' It clearly distinguishes the tool from its debug siblings by focusing exclusively on teardown and cleanup, and the detailed cleanup list removes any ambiguity about what detach does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states 'ALWAYS call this when done,' giving an unambiguous trigger condition, and explains the real-world harm of not calling it. It also provides idempotence guidance, saying it is safe to call twice and safe on an already-ended session, which covers the main edge cases for usage.

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