Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

check_transport_lock

Check whether an object is already locked in another open transport request and list your open requests it can be assigned to; this is a read-only dry run that changes nothing.

Instructions

Check whether an object is ALREADY locked/registered in some other open transport request - the thing that causes 'object is locked in request X' conflicts. Also lists which of your own open requests the object could be assigned to. This is a dry-run check (verified against the ADT 'transportchecks' endpoint abap-adt-api uses) - it changes nothing. Read-only and safe on any profile.

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": {
      "objectUri": "<objectUri>"
    },
    "name": "check_transport_lock"
  }
}

Input Schema

NameRequiredDescriptionDefault
devclassNoThe object's package (dev class), e.g. ZHRY_ABAP_PP. Needed to find candidate requests; omit if you only care about existing locks.
objectUriYesADT URI of the object, e.g. /sap/bc/adt/oo/classes/zcl_foo
operationNoI = as if inserting a new object, U = as if updating an existing one (default), D = as if deleting it.U

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares read-only semantics ('changes nothing', 'safe on any profile'), identifies the underlying ADT 'transportchecks' endpoint so the agent can trust the behavior, and discloses the dual result shape (existing locks plus candidate own requests). It stops short of describing failure modes (invalid URI, no devclass, unauthorized profile), which keeps it off a 5.

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?

Four sentences, front-loaded with the core check before the secondary listing behavior and the dry-run reassurance. The parenthetical about the abap-adt-api endpoint is slightly technical padding but does add verifiable behavior, so it mostly earns its place.

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 3-parameter read-only tool with no output schema, the description adequately conveys what comes back (lock status plus candidate requests) and the safety profile. It could say more about behavior when the object is already locked in the agent's own request, but nothing essential for calling it correctly is missing.

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

Parameters5/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, but the description earns more by linking devclass to the second output ('lists which of your own open requests the object could be assigned to'), which explains why the optional parameter exists rather than merely restating its type. The 'ALREADY' emphasis also implicitly frames the operation enum's insert/update/delete framing as a what-if question.

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?

States a specific verb+resource (check whether an object is locked/registered in another open transport request) and adds the diagnostic framing an agent needs: it reproduces the 'object is locked in request X' conflict, and it also returns candidate requests the object could be assigned to. That is clearly distinguishable from the transport-mutation siblings like create_transport or release_transport.

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

Usage Guidelines3/5

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

The description makes the pre-flight/diagnostic role clear ('dry-run check', 'changes nothing') and notes that devclass can be omitted when only existing locks matter. However, it never explicitly routes against alternatives (e.g. 'run this before create_transport' or 'use get_transport_details instead when you already know the request'), so when-to-use is implied rather than stated.

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