Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_domain

Creates an SAP DDIC domain with datatype, length, decimals, and optional fixed values, then activates it; blocks creation on production profiles.

Instructions

Create a new DDIC domain (DOMA/DD) and optionally activate it. A domain defines the technical type (datatype/length/decimals) and optional fixed values. Refuses to run on production profiles.

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": {
      "domainName": "<domainName>",
      "description": "<description>",
      "packageName": "<packageName>",
      "datatype": "<datatype>",
      "length": "<length>"
    },
    "name": "create_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYesField length, e.g. 10
activateNoActivate after creating
datatypeYesDDIC data type, e.g. CHAR, NUMC, DEC, DATS, TIMS, INT4, STRING
decimalsNoDecimal places (for DEC/QUAN/CURR)
lowercaseNoAllow lower case
transportNoTransport request. Omit only for $TMP.
domainNameYesDomain name, e.g. ZDOM_PLANT
descriptionYesShort description
fixedValuesNoOptional fixed value list, e.g. [{value:'X',description:'Yes'}]
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one important runtime trait (production profiles are refused) and that activation is optional, but says nothing about required authorization, transport handling, what happens if the domain already exists, or whether activation has follow-on side effects. For a write operation with zero annotation coverage this leaves substantial gaps.

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?

Three short sentences, front-loaded with the action, with no redundant wording. The middle sentence about what a domain defines earns its place by helping the agent fill datatype/length/decimals correctly.

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?

With 10 fully documented parameters and no output schema, the description covers purpose, the optional activation flag, and the production guard rail, which is enough to call the tool safely in a non-production system. It stops short of describing return values or failure modes beyond the production refusal.

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 description coverage is 100%, so the schema already explains every parameter including datatype, length, decimals, fixedValues, and transport. The description reinforces the technical-type triad and fixed values but adds no syntax, constraints, or interdependencies beyond the schema.

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 ("Create a new DDIC domain (DOMA/DD)") and adds a one-line definition of what a domain is, which lets an agent place it among the many create_* siblings without opening the schema. It does not explicitly contrast with siblings such as create_data_element or create_table_type, but the resource name is inherently distinct.

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?

Usage is implied: create a domain when you need a technical type with optional fixed values, and optionally activate it. The definition adds a real constraint ("Refuses to run on production profiles"), but gives no guidance on when a domain is preferable to other DDIC objects, nor on transport/$TMP selection beyond what the schema already documents.

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