Skip to main content
Glama

CreateBehaviorImplementation

Creates a RAP behavior implementation class for a behavior definition in a package and transport, with an optional description, so you can add behavior logic.

Instructions

Creates the RAP behavior implementation class (CLAS) of a behavior definition (BDEF), with its description, recorded in the transport given.

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": {
      "class_name": "<class_name>",
      "behavior_definition": "<behavior_definition>",
      "package_name": "<package_name>"
    },
    "name": "CreateBehaviorImplementation"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
class_nameYesBehavior Implementation class name.
descriptionNoClass description. If not provided, class_name will be used.
package_nameYesPackage name
transport_requestNoTransport request number, not a task. Required for transportable packages.
behavior_definitionYesBehavior Definition name. The behavior definition must exist. Accepted for compatibility; not forwarded to the create request — the shipped create endpoint posts a metadata document (name/description/package) only. The class is bound to this behavior definition when its FOR BEHAVIOR OF main source is written, separately, via UpdateClass.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / detail / description
      Previous value: -"How much of the answer to return: \"terse\" (default, the fields you need to act), \"full\" (the whole parse), \"raw\" (the document as ADT sent it)."New value: +"How much of the answer to return: \"terse\" (default) what a next call needs: the identifiers and a short description; \"medium\" every item the tool read, with its main properties; \"full\" the tool's whole answer; \"raw\" what SAP sent."
    • changedInput schema / properties / detail / enum
      Previous value: -[
      -  "terse",
      -  "full",
      -  "raw"
      -]New value: +[
      +  "terse",
      +  "medium",
      +  "full",
      +  "raw"
      +]
  2. Changed5 schema fields changedv16.0.0
    • changedInput schema / properties / behavior_definition / description
      Previous value: -"Behavior Definition name (e.g., ZI_MY_ENTITY). The behavior definition must exist."New value: +"Behavior Definition name. The behavior definition must exist. Accepted for compatibility; not forwarded to the create request — the shipped create endpoint posts a metadata document (name/description/package) only. The class is bound to this behavior definition when its FOR BEHAVIOR OF main source is written, separately, via UpdateClass."
    • changedInput schema / properties / class_name / description
      Previous value: -"Behavior Implementation class name (e.g., ZBP_MY_ENTITY). Must follow SAP naming conventions (typically starts with ZBP_ for behavior implementations)."New value: +"Behavior Implementation class name."
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "How much of the answer to return: \"terse\" (default, the fields you need to act), \"full\" (the whole parse), \"raw\" (the document as ADT sent it).",
      +  "enum": [
      +    "terse",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / package_name / description
      Previous value: -"Package name (e.g., ZOK_LOCAL, $TMP for local objects)"New value: +"Package name"
    • changedInput schema / properties / transport_request / description
      Previous value: -"Transport request number (e.g., E19K905635). Required for transportable packages."New value: +"Transport request number, not a task. Required for transportable packages."
  3. Changed2 schema fields changed
    • removedInput schema / properties / activate
      Removed value: -{
      -  "description": "Activate behavior implementation after creation. Default: true.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / implementation_code
      Removed value: -{
      -  "description": "Implementation code for the implementations include (optional). Contains the actual behavior implementation methods.",
      -  "type": "string"
      -}
  4. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the transport-recording behavior, but says nothing about permissions, whether the object is usable before activation, what happens on name collision, or what the class is bound to at creation (the schema, not the description, carries the 'not forwarded — bound separately via UpdateClass' caveat). For a write tool with zero annotation coverage this is a meaningful gap.

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?

A single front-loaded sentence with no filler; the artifact type and transport scoping lead. It is dense but every clause carries content, so only minor deduction for packing three facts into one unpunctuated flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The rich 100% schema coverage compensates for much of the terse description, but with no output schema and no annotations the agent still lacks return-value expectations and the follow-up flow (class must be activated, BDEF binding happens via UpdateClass). Adequate but with clear gaps for a multi-step RAP creation workflow.

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 six parameters in detail, including the unusual behavior_definition compatibility caveat. The description only restates that a description and a transport are supplied, adding essentially nothing beyond the structured fields. Baseline 3 applies.

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?

Names a specific verb and artifact: creates the RAP behavior implementation class (CLAS) for a behavior definition (BDEF), plus its description, in a transport. This clearly separates it from CreateClass and CreateBehaviorDefinition. Minor deduction because 'of a behavior definition' implies the class is bound at creation, which the schema's own behavior_definition note contradicts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to use this versus CreateClass, CreateBehaviorImplementation siblings, or UpdateBehaviorImplementation, and no ordering guidance relative to CreateBehaviorDefinition or ActivateBehaviorDefinition. The precondition that the BDEF must exist and that a transport is required only appears in the parameter descriptions, not as usage guidance.

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

Deploy Server

Other Tools