Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_srvd

Creates and activates a Service Definition (SRVD) in SAP from provided source code, with production write protection. Use it to expose entities as OData services; requires a transport unless the package is $TMP.

Instructions

Create a new Service Definition (SRVD) in SAP and activate it. Refuses to run on production profiles. Provide the complete source (e.g. 'define service { expose ; }'); the service name must match srvdName. Needs a transport unless package is $TMP.

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": {
      "srvdName": "<srvdName>",
      "description": "<description>",
      "packageName": "<packageName>",
      "source": "<source>"
    },
    "name": "create_srvd"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete SRVD source (define service <name> { expose <entity>; })
activateNoActivate after writing the source
srvdNameYesService definition name, e.g. ZKIT_UI_PRODUCT. Must match the name in the source.
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses that the tool activates the object, enforces a production-profile guard, and requires a transport for non-$TMP packages. It stops short of saying what happens when a service of that name already exists (error vs. overwrite) or what permissions are needed, which matters for a write tool.

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, each doing distinct work: what it does, the safety guard, then the source/transport requirements. The action and the most important constraint are front-loaded with no filler.

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 six-parameter write tool with no annotations and no output schema, the description covers the essentials an agent needs before calling: required source shape, the name-consistency rule, the transport rule, and the production guard. Return-value behavior is the only unaddressed area and is minor here.

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 baseline would be 3, but the description adds cross-parameter meaning the schema does not: the service name in the source must equal srvdName, and transport is only omittable for $TMP. Those constraints prevent a common malformed call and go beyond the per-field descriptions.

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 states a specific verb and resource — 'Create a new Service Definition (SRVD) in SAP and activate it' — and immediately distinguishes the tool from the update_srvd/patch_srvd siblings by making creation plus activation the whole job. An agent can tell what it produces without opening the schema.

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?

It gives a hard exclusion ('Refuses to run on production profiles') and a prerequisite ('Needs a transport unless package is $TMP'), which is real when-to-use context. It does not name update_srvd or patch_srvd as the alternatives for modifying an existing service, so the routing guidance is contextual rather than exhaustive.

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