Skip to main content
Glama

ImportClassFromFile

Import a local ABAP class (Z/Y prefix) from a file in the tmp folder and create it in the SAP system, optionally specifying package, description, activation, and pre-audit.

Instructions

Import an ABAP class from a file in the tmp folder and create it in the SAP system. Only supports local classes (Z/Y prefix) in local packages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageNoOptional package name (defaults to $TMP)$TMP
class_nameYesName of the ABAP class to import (must start with Z or Y)
descriptionNoOptional description for the class (extracted from file if not provided)
auto_activateNoOptional: Automatically activate the class after import (default: false)
preaudit_requestedNoOptional: Request pre-audit during activation (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose real traits: the source is a file already in the tmp folder, the effect is creation in the live SAP system, and only local Z/Y classes in local packages are supported. It omits important behavior such as what happens if the class already exists (overwrite vs error), permission requirements, and how activation/pre-audit interact with the import.

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?

Two short sentences, zero filler, with the core action front-loaded and the scope constraint immediately after. Every clause carries information the agent needs.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description is only partially complete. Notably, there is no file-path parameter in the schema, so the agent must infer how the source file is located from class_name alone — the description never explains this file-naming convention, nor the conflict/overwrite behavior of the create step.

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 are already documented in the schema, which sets the baseline at 3. The description only echoes the Z/Y prefix constraint already stated in class_name and the local-package restriction; it adds no new parameter meaning.

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?

The description states a specific verb and resource: import an ABAP class from a file in the tmp folder and create it in the SAP system. This is clearly distinguishable from siblings like CreateClass (author from scratch), ExportClassToFile (reverse direction), and GetClass (read-only). The local-only scope further sharpens what this tool is for.

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?

It gives a concrete usage boundary: only local classes (Z/Y prefix) in local packages, which implicitly tells the agent when NOT to use it. However, it never names an alternative (e.g., CreateClass for global classes) or states prerequisites such as the file needing to already exist in tmp. Clear context, but no explicit routing to a sibling.

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