Skip to main content
Glama

CreateServiceDefinition

Creates an ABAP service definition to define the structure and behavior of OData services, with options for source code, activation, and transport management.

Instructions

Create a new ABAP service definition for OData services. Service definitions define the structure and behavior of OData services. Uses stateful session for proper lock management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activateNoActivate service definition after creation. Default: true.
descriptionNoService definition description. If not provided, service_definition_name will be used.
source_codeNoService definition source code (optional). If not provided, a minimal template will be created.
package_nameYesPackage name (e.g., ZOK_LOCAL, $TMP for local objects)
transport_requestNoTransport request number (e.g., E19K905635). Required for transportable packages.
service_definition_nameYesService definition name (e.g., ZSD_MY_SERVICE). Must follow SAP naming conventions (start with Z or Y).
Behavior3/5

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

With no annotations provided, the description adds the useful detail that it uses a stateful session for proper lock management, hinting at behavioral traits like session dependence and locking. However, it does not disclose other important aspects such as activation side-effects (controlled by the activate parameter), required transport request, or reversibility of creation.

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?

Three sentences: first defines purpose, second provides domain context, third adds behavioral detail. Front-loaded and no fluff. Every sentence adds value.

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

Completeness2/5

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

For a tool with 6 parameters, no output schema, and many sibling tools, the description is too brief. It lacks details on the creation process, template vs custom source_code, activation implications, transport handling, and return values. The schema covers parameter descriptions but not the overall flow or outcomes.

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?

The input schema has 100% description coverage, so each parameter is already documented. The description does not add more meaning beyond the schema, but it does hint at the stateful session which indirectly relates to parameter behavior (e.g., transport_request may affect locking). Baseline 3 is appropriate.

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?

The description states the tool creates an ABAP service definition for OData services, which is a specific verb and resource. It distinguishes from other create tools like CreateServiceBinding implicitly by naming the resource, but does not explicitly differentiate among sibling create tools.

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?

No guidance is provided on when to use this tool vs alternatives (e.g., UpdateServiceDefinition). Prerequisites, when not to use, or required context (e.g., session) are not mentioned. Only a mention of stateful session is present but not as usage guidance.

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

Install Server

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/ChinhHN-DEV/abap-mcp-adt'

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