Skip to main content
Glama

GetObjectDraft

Checks whether an ABAP development object has an unactivated change and identifies the owner, helping you resolve pending drafts before activation.

Instructions

[read-only] Reads whether an ABAP class (CLAS), interface (INTF), program (PROG), CDS view (DDLS), table (TABL) or other development object holds an unactivated change, and whose.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "object_type": "<object_type>",
      "object_name": "<object_name>"
    },
    "name": "GetObjectDraft"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_nameYesObject name.
object_typeYesObject type.
function_group_nameNoThe function group of a FUNCTION_MODULE (required for it).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

The '[read-only]' marker supplies the safety profile that annotations would otherwise carry, and the description discloses the core return semantic (existence of an unactivated change plus its owner). It does not say what is returned when no draft exists, nor whether the check is scoped to the current user or client.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single economical sentence with the safety marker and verb front-loaded. Minor imprecision: the parenthetical lists six types plus 'or other development object', while the schema enum names sixteen with different spellings (CLASS vs CLAS, DDL vs DDLS).

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

Completeness3/5

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

No output schema exists, so the description bears the burden of describing the result, and it does so only at a high level ('whether ... and whose'). For a simple read-only probe that is nearly adequate, but the negative case and the FUNCTION_MODULE parameter nuance are unaddressed.

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 three parameters are already documented in the schema, and the baseline of 3 applies. The description recasts the object_type enum in words but adds nothing about object_name formatting or when function_group_name is required.

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?

States a specific verb and resource: reads whether a named development object (with the object types enumerated) holds an unactivated change, and whose it is. This is distinguishable from metadata-oriented siblings like GetObjectInfo or GetObjectStructure, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as the version-diff or object-info tools. The agent must infer from the verb alone that this is a pre-activation check rather than a general status lookup.

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