Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_function_group

Creates a function group container in an SAP system for holding function modules, with production write protection. Add modules afterwards using create_function_module.

Instructions

Create a new function group (the container that holds function modules). Refuses to run on production profiles. Add modules afterwards with create_function_module. 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": {
      "functionGroup": "<functionGroup>",
      "description": "<description>",
      "packageName": "<packageName>"
    },
    "name": "create_function_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
functionGroupYesFunction group name WITHOUT the SAPL prefix, e.g. ZABL_UTIL

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 must carry behavioral weight and it does: it discloses a production-profile refusal and a transport prerequisite with the $TMP exception. It does not describe what is returned on success, whether the name must be unique, or required authorization, leaving some gaps for a mutation 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 short sentences, each earning its place: identity first, then safety constraint, then next-step guidance. The $TMP transport condition is front-loaded before the schema is consulted.

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 a four-parameter creation tool with no annotations and no output schema, the definition covers the key risks (production refusal, transport requirement) and the follow-up step. Only the success return value and uniqueness behavior are left unaddressed, which is a minor gap.

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 all four parameters are already documented, including the $TMP transport rule and the SAPL-prefix caveat on functionGroup. The description only echoes the $TMP transport rule, adding no new parameter-level meaning beyond the schema.

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 function group') and parenthetically defines the domain object ('the container that holds function modules'), which distinguishes it from the sibling create_function_module that adds contents. The scope is unambiguous 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?

Explicitly sequences the workflow ('Add modules afterwards with create_function_module') and states a hard precondition ('Refuses to run on production profiles'). It stops short of naming alternatives for other object types or saying when a group already exists, but the when-to-use context is clear.

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