Skip to main content
Glama

GetBehaviorDefinition

Reads a RAP behavior definition (BDEF) source or metadata, with optional version selection and line-range filtering for targeted code inspection.

Instructions

[read-only] Reads the current source code of a RAP behavior definition (BDEF), or its metadata.

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": {
      "behavior_definition_name": "<behavior_definition_name>"
    },
    "name": "GetBehaviorDefinition"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoThe document to read: "source" (default) the source code, "metadata" the ADT metadata document (package, responsible, description, ...).source
versionNoThe version read: "active" (default) the activated version, "inactive" the version saved and awaiting activation, "workingArea" the version in the working area, as ADT answers it.active
end_lineNoLast line of the source to answer, included. Without it, to the last line.
start_lineNoFirst line of the source to answer, from 1. Without it, from the first line.
behavior_definition_nameYesBehaviorDefinition name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / end_line
      Added value: +{
      +  "description": "Last line of the source to answer, included. Without it, to the last line.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / start_line
      Added value: +{
      +  "description": "First line of the source to answer, from 1. Without it, from the first line.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / version / description
      Previous value: -"Version of the source: \"active\" (default) for the deployed version, \"inactive\" for the modified version awaiting activation."New value: +"The version read: \"active\" (default) the activated version, \"inactive\" the version saved and awaiting activation, \"workingArea\" the version in the working area, as ADT answers it."
    • changedInput schema / properties / version / enum
      Previous value: -[
      -  "active",
      -  "inactive"
      -]New value: +[
      +  "active",
      +  "inactive",
      +  "workingArea"
      +]
  2. Changed2 schema fields changedv20.1.0
    • addedInput schema / properties / part
      Added value: +{
      +  "default": "source",
      +  "description": "The document to read: \"source\" (default) the source code, \"metadata\" the ADT metadata document (package, responsible, description, ...).",
      +  "enum": [
      +    "source",
      +    "metadata"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / version / description
      Previous value: -"Version to read: \"active\" (default) for deployed version, \"inactive\" for modified but not activated version."New value: +"Version of the source: \"active\" (default) for the deployed version, \"inactive\" for the modified version awaiting activation."
  3. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / behavior_definition_name / description
      Previous value: -"BehaviorDefinition name (e.g., Z_MY_BEHAVIORDEFINITION)."New value: +"BehaviorDefinition name."
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden, and it does declare read-only and non-mutating behavior via the "[read-only]" marker. Beyond that it discloses nothing about failure modes (unknown/nonexistent BDEF name), how inactive or workingArea versions relate to "current", or pagination when the source is large.

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 the read-only tag first and the resource immediately after — no wasted clauses. The bracketed tag is slightly informal but functional; the description is appropriately sized for a simple read tool.

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 100% schema coverage, one required parameter, and no output schema, the structured data covers the mechanics, so the description only needs to frame intent — which it does. The remaining gap is that it never acknowledges the line-range or version-selection capabilities, which are non-obvious behaviors of this tool.

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 five parameters (part, version, start_line, end_line, behavior_definition_name) are already documented in the schema; baseline 3 applies. The description adds only the source/metadata distinction, and nothing about the line-range parameters or how version interacts with "current".

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?

"Reads the current source code of a RAP behavior definition (BDEF), or its metadata" names a specific verb (reads), a specific resource (RAP BDEF), and the two content modes. The word "current" implicitly separates it from the sibling version tools (GetBehaviorDefinitionVersionSource, GetBehaviorDefinitionVersionDiff), but no sibling is named explicitly.

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 only implied: the phrase "current source code ... or its metadata" suggests this is the plain read for the present state, and the schema's `part` and `version` enums carry the selection logic. There is no explicit when-to-use, when-not-to-use, or pointer to the version-specific siblings, so an agent must infer the boundary itself.

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