Skip to main content
Glama

CheckClass

Validates ABAP class syntax for active, inactive, or supplied source code without creating objects, helping catch errors before activation or deployment.

Instructions

[read-only] Checks the syntax of an ABAP class (CLAS) as stored or as the source 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>"
    },
    "name": "CheckClass"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoVersion to check: 'active' (last activated) or 'inactive' (current unsaved). Default: active.
class_nameYesClass name.
source_codeNoOptional: source code to validate. If provided, validates hypothetical code without creating object. Must include complete CLASS DEFINITION and IMPLEMENTATION sections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / class_name / description
      Previous value: -"Class name (e.g., ZCL_MY_CLASS)."New value: +"Class name."
  2. Addedv6.5.1

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; the '[read-only]' marker is a useful safety disclosure. However, it says nothing about what a check produces (syntax error list vs. boolean), whether failures are returned as errors, or whether anything is mutated when validating stored code.

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 compact sentence with the read-only tag front-loaded; nothing is wasted. The 'as stored or as the source given' clause is slightly redundant with the schema but still earns its place by framing the two modes.

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 read-only, single-purpose check tool with fully documented parameters and no output schema, the definition covers the essentials. The main gap is the absence of any hint about the result shape or how syntax errors are surfaced.

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 three parameters are already documented in the schema. The description echoes the 'stored vs. source given' distinction but adds no format, precedence, or interaction detail beyond what the schema provides.

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?

States a specific verb ('Checks the syntax') and resource ('an ABAP class (CLAS)'), which distinguishes it from the sibling Check* tools targeting other object types. It does not explicitly name or contrast those siblings, but the resource type is unambiguous.

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?

The phrase 'as stored or as the source given' implies the two usage modes (validating an existing class vs. a hypothetical source string), but there is no explicit when-to-use/when-not guidance or reference to alternatives such as ActivateClass or the other Check tools.

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