Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_class_include

Replace a class's separate include source—local types, definitions, implementations, macros, test classes—when empty or needing full overwrite. Run list_class_includes first for includeType.

Instructions

Overwrite the WHOLE source of a class's SEPARATE include - local types (CCIMP / 'Local Types' tab), definitions, implementations, macros, or test classes - none of which live in /source/main (update_class/patch_class cannot reach these). Run list_class_includes FIRST to get the exact includeType string. Use this instead of patch_class_include when the include is empty/new (nothing to pattern-match against) or you're replacing all of it. Locks the class, PUTs the whole new source to the discovered include, unlocks, and optionally activates the 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": {
      "className": "<className>",
      "includeType": "<includeType>",
      "source": "<source>"
    },
    "name": "update_class_include"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete new source for this include - REPLACES its entire content
activateNoActivate the class after writing. Default false.
classNameYesClass name, e.g. ZCL_ABL_PLANT_EMAIL
transportNoTransport request. Omit only for local/$TMP objects.
includeTypeYesExact includeType reported by list_class_includes for the include you want to write

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/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 that the write is destructive (whole-source replacement), describes the lock/PUT/unlock sequence, notes the optional post-write activation, and states a safety guardrail ('Refuses to run on production profiles'). It stops short of describing failure behavior (e.g., whether the lock is released on error) or the response, which keeps it from a 5.

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?

Information-dense and front-loaded: the resource and scope come first, then prerequisites, then behavioral mechanics and the production guardrail. It is a long single paragraph rather than a broken-up structure, but nearly every clause carries actionable content, with minimal redundancy.

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 destructive multi-parameter write tool with no annotations and no output schema, the description supplies the critical context: what gets overwritten, the required discovery step, the locking/activation behavior, and the production refusal. Gaps remain around error handling and post-call state, but nothing essential for calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning beyond the schema: includeType is not free-form but must be the exact string returned by list_class_includes, which constrains how the agent must populate it. The 'REPLACES its entire content' semantics of source reinforce but do not exceed 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 precise verb and resource ('Overwrite the WHOLE source of a class's SEPARATE include') and immediately scopes it by naming the include kinds (local types/CCIMP, definitions, implementations, macros, test classes). It explicitly distinguishes itself from update_class and patch_class by noting those cannot reach these includes, so an agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit prerequisite ('Run list_class_includes FIRST to get the exact includeType string') and a direct alternative rule: use this instead of patch_class_include when the include is empty/new or when replacing all of it. Both the when and the when-not are spelled out.

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