Skip to main content
Glama

Delete ABAP Repository Object

sap_delete_object
Destructive

Permanently delete an ABAP repository object from SAP, with optional transport recording. Verify dependencies first to avoid breaking references.

Instructions

Delete an ABAP repository object. This PERMANENTLY REMOVES the object from SAP.

The tool locks the object, deletes it, and records the change in the transport if provided. This cannot be undone (except by restoring from a transport or backup).

Args:

  • object_type, object_name (and function_group for functions).

  • transport: required for non-local objects.

  • response_format.

Returns (json): { objectType, objectName, message }.

Examples:

  • "Delete program ZOLD_PROG from $TMP" -> object_type='program', object_name='ZOLD_PROG'.

  • "Delete class ZCL_OLD from transport DEVK900123" -> object_type='class', object_name='ZCL_OLD', transport='DEVK900123'. Notes:

  • Run sap_where_used first to verify nothing depends on this object.

  • Deleting a function group removes all its function modules too.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transportNoTransport number. Required for non-$TMP (transportable) objects.
object_nameYesObject name. Must exist.
object_typeYesKind of object to delete.
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 already flag destructiveHint=true, and the description expands this with concrete behaviors: the tool locks and deletes the object, records it in a transport when provided, cannot be undone except via restore, and deleting a function group removes all function modules. This is exactly the side-effect disclosure an agent needs.

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 permanent-destruction warning, then organized into Args, Returns, Examples, and Notes. Every section contributes essential behavioral or invocation information without repetition.

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 destructive mutation tool with no output schema, the description is unusually complete: it states return fields, side effects, transport requirements, preconditions, and examples. An agent can safely determine when and how to invoke it.

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 base expectation is 3. The description adds value with natural-language examples mapping phrases to object_type/object_name/transport, and it restates the non-local transport requirement. The only minor weakness is that 'Returns (json)' is slightly ambiguous given response_format defaults to markdown.

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: 'Delete an ABAP repository object. This PERMANENTLY REMOVES the object from SAP.' This unambiguously distinguishes the tool from siblings such as sap_create_object, sap_write_source, and sap_activate.

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 practical usage context: transport is required for non-local objects, sap_where_used should be run first, and function-group deletion has cascade effects. It does not explicitly name when-not-to-use alternatives, but the destructive operation and prerequisites make the intended use clear.

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