Skip to main content
Glama

GetBehaviorDefinitionVersionSource

Retrieves the source code of a specific RAP behavior definition version from its version history using an opaque content_uri.

Instructions

[read-only] Reads an older version of the source code of a RAP behavior definition (BDEF) from its version history.

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": {
      "content_uri": "<content_uri>"
    },
    "name": "GetBehaviorDefinitionVersionSource"
  }
}

Input Schema

NameRequiredDescriptionDefault
content_uriYesOpaque content_uri of a version, from the RAP behavior definition's version history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv20.1.0
    • changedInput schema / properties / content_uri / description
      Previous value: -"Opaque content_uri taken from a GetBehaviorDefinitionVersions entry."New value: +"Opaque content_uri of a version, from the RAP behavior definition's version history."
  2. Addedv8.5.0

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 full burden; it does state '[read-only]' and that the read targets an older historical version. It does not cover what happens for an invalid or expired content_uri, whether the whole source is returned, or any size/truncation behavior, which leaves meaningful gaps for a version-history read.

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?

One front-loaded sentence with a bracketed read-only tag and no filler; every clause (older version, source code, BDEF, version history) contributes. Slightly denser than ideal but appropriately sized.

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 one-parameter read tool with no output schema and full schema coverage, the description covers what is read, from where, and that it is read-only. The main omission is behavior on missing/invalid versions, which is minor at this complexity.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains content_uri as an opaque identifier from the version history. The description adds only the context that it identifies an older version, not any format, sourcing, or error semantics beyond the schema; 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?

The description uses a specific verb ('Reads') plus a precise resource ('an older version of the source code of a RAP behavior definition (BDEF)') and scope ('from its version history'), which lets an agent distinguish it from listing versions or reading current source. It stops short of naming the sibling tools (e.g. GetBehaviorDefinitionVersionDiff or GetBehaviorDefinitionVersions), so differentiation is inferential rather than explicit.

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 agent can infer this is for retrieving historical source rather than current source or a diff. There is no explicit when-to-use statement, no prerequisite guidance on how to first obtain a version's content_uri, and no mention of alternatives.

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