Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_srvb

Creates, activates, and publishes a Service Binding that exposes an existing active service definition as an OData service; blocked on production profiles.

Instructions

Create a Service Binding (SRVB) that exposes a service definition as an OData service, then activate and publish it. Refuses to run on production profiles. The service definition must already exist and be active. Publishing may require a transport on clients set to auto-record; if it can't publish, the binding is still created and active.

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": {
      "srvbName": "<srvbName>",
      "description": "<description>",
      "packageName": "<packageName>",
      "serviceDefinition": "<serviceDefinition>"
    },
    "name": "create_srvb"
  }
}

Input Schema

NameRequiredDescriptionDefault
publishNoPublish the OData service after activating.
activateNoActivate the binding after creating it.
srvbNameYesService binding name, e.g. ZKIT_UI_PRODUCT_O4.
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
odataVersionNoOData protocol version (default V4).V4
serviceDefinitionYesName of the service definition (SRVD) to bind, e.g. ZKIT_UI_PRODUCT.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 well: it discloses a hard environment guard (production refusal), a prerequisite state check (SRVD must be active), a transport dependency for auto-record clients, and explicit partial-failure semantics (binding is still created and active if publish fails). It does not address what happens if a binding with the same name already exists or whether the operation is idempotent.

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?

Four short sentences, front-loaded with the core action, then constraints, then failure semantics. No filler, and the partial-failure caveat is stated last where it belongs.

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 an 8-parameter mutating tool with no annotations and no output schema, the description covers the important operational context: prerequisites, environment guard, transport requirement, and non-atomic publish behavior. It leaves the return value and the duplicate-name case unexplained, which an agent would still need to discover.

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 every parameter is already documented, and the description mostly restates that behavior: activate and publish happen by default, and transport is only needed on auto-record clients. That transport clarification is a genuine addition beyond the schema text, but most of the parameter meaning is already in the schema's own examples and defaults.

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 with its domain meaning: creates a Service Binding (SRVB) that exposes a service definition as an OData service, including the activate/publish follow-on steps. It distinguishes itself implicitly by naming SRVD as a prerequisite input rather than something it creates, though it never names the sibling tool that produces the service definition.

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?

Gives a clear precondition (the service definition must already exist and be active) and an environment exclusion (refuses to run on production profiles). It stops short of naming the alternative tool to run first when the SRVD is missing, leaving the agent to infer create_srvd.

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