Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_message_class

Creates an empty SAP Message Class (MSAG) and optionally activates it for numbered MESSAGE/RAISE and RAP response texts; add messages afterward. Refuses production profiles.

Instructions

Create a new empty Message Class (MSAG) and optionally activate it. A message class is a named container for numbered messages (T100 texts) used by MESSAGE/RAISE statements and RAP failed/reported responses. Creates the empty class only - add messages afterwards with patch_message_class. 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": {
      "messageClassName": "<messageClassName>",
      "description": "<description>",
      "packageName": "<packageName>"
    },
    "name": "create_message_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after creating
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
messageClassNameYesMessage class name, e.g. ZCL_MY_MESSAGES (max 20 chars)

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, the description carries the full burden and does well: it discloses scope (empty class only, no messages), a safety guardrail (production refusal), and that activation is optional. Gaps remain on transport requirements, permissions, and what happens if the class already exists — meaningful for a mutating 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, front-loaded with the action, then the domain explanation, then the hand-off and constraint. No redundant restatement of the tool name and every sentence carries information.

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 unannotated mutation tool with a fully documented schema and no output schema, this covers the essentials: what is created, what is not, and the production safety gate. Missing details on transport/package prerequisites and failure modes keep it from a 5.

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 documents all five parameters including activate, transport, and packageName examples. The description adds meaning only for activate ("optionally activate it"); it does not enrich messageClassName, transport, or the $TMP convention beyond the schema. Baseline 3 is appropriate.

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 and resource ("Create a new empty Message Class (MSAG)") and immediately disambiguates from the sibling write path by noting it creates the empty class only and that messages are added with patch_message_class. The MSAG/T100 explanation tells the agent exactly what artifact it gets.

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?

Explicitly routes the follow-up work to patch_message_class, which is a concrete alternative and condition. It also supplies a hard stop condition ("Refuses to run on production profiles"). It does not cover duplicate-name behavior or when to prefer create_class-style siblings, but the core when/when-not is present.

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