Skip to main content
Glama

Check ABAP Cloud readiness

check_cloud_readiness
Read-onlyIdempotent

Assess how far ABAP source is from ABAP Cloud readiness by comparing classic and Cloud parser findings, flagging cloud blockers, broken code, and released-API issues with a graded score.

Instructions

Assess how far ABAP source is from ABAP Cloud (Clean Core tier 1) by parsing it twice — once at a classic baseline (default v758) and once at version Cloud — and diffing: findings that appear only at Cloud are genuine cloud blockers (statements ABAP Cloud removed), reported in categories (dynpro, list output, native SQL, report events, …) with a transparent score, an A–D tech-debt grade and a verdict; findings already present at the baseline are reported separately as broken code, not migration work. It also reports snapshot-dated released-API observations for direct table and function-module references the parser can extract; those stay separate from the language-level blocker count and score. Use this when someone asks 'is this code cloud-ready / Clean Core compliant / S/4HANA-cloud safe', before porting classic ABAP into an ABAP Cloud environment, or for a graded tech-debt assessment of an abapGit export. It is static and parser-level: its released-API scan is not exhaustive dependency discovery, it does not connect to any SAP system or run ATC, and a 'ready' verdict means no detected language-level blockers — not a certification. Our A–D grade is blocker density (see gradeMeaning), NOT SAP's own Clean Core Level A–D; a target system's own released-API ATC check ("Usage of Released APIs (Cloudification Repository)" for SAP Cloud ERP Public Edition / "Usage of APIs (Cloudification Repository)" for SAP Cloud ERP Private Edition / on-premise, via variants such as ABAP_CLEAN_CORE_DEVELOPMENT / ABAP_CLEAN_CORE_READINESS) remains authoritative. Example: check_cloud_readiness({ "files": [ { "source": "REPORT zold.\nWRITE: / 'hi'." } ] }).

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": {
      "files": "<files>"
    },
    "name": "check_cloud_readiness"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesSource files to analyze, up to 32 per call, 100k chars each.
editionNoSAP edition of the bundled Cloudification snapshot to check against: "s4hc" (default, SAP Cloud ERP Public Edition), "btp" (SAP BTP ABAP environment), or "pce" (SAP Cloud ERP Private Edition / on-premise). Release state and successors can differ by edition — the same object may be released in one and not yet in another.s4hc
baselineVersionNoClassic ABAP version the code is assumed to run on today; used to separate broken-anyway code from cloud blockers.v758

Output Schema

NameRequiredDescriptionDefault
gradeYesBlocker-density tech-debt grade (see gradeMeaning): A = no blockers, B = ≤ 0.5 blockers/file, C = ≤ 2 blockers/file, D = more. The same objective count as the score, sized for assessment reports.
scoreYes100 − 5×blockers, floored at 0. Transparent, not an oracle.
editionYesSAP edition the released-API findings were checked against.
verdictYesBanded verdict from the blocker count (0 / ≤5 / ≤20 / >20).
fileCountYesFiles analyzed — the denominator of the grade's density banding.
scopeNoteYesExactly what this check does and does not cover.
categoriesYes
gradeMeaningYesWhat `grade` means: a banding of blockers per file. NOT SAP's own Clean Core Level A–D (see cleanCoreVocabulary.cleanCoreLevels for those) — do not conflate the two.
baselineVersionYesThe baseline used.
brokenAtBaselineYesFindings that fail even at the baseline version — fix first, they are not migration items.
cloudBlockerCountYesStatements valid at the baseline but not in ABAP Cloud.
cleanCoreVocabularyYesSAP's real ATC vocabulary for released-API/Clean Core checks — see docs/atc-vocabulary.json (F04).
releasedApiFindingsYesReleased-API observations from the bundled SAP Cloudification snapshot (deprecated-API usage, direct non-released table access with successor hints, and which edition/source answered each one). Informational — NOT counted in cloudBlockerCount or score.
releasedApiSnapshotDateYesDate of the bundled released-API snapshot the releasedApiFindings reflect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.13.2
    • addedOutput schema / properties / releasedApiFindings / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / releasedApiFindings / items / properties
      Added value: +{
      +  "edition": {
      +    "description": "Edition the state was looked up against.",
      +    "enum": [
      +      "s4hc",
      +      "btp",
      +      "pce"
      +    ],
      +    "type": "string"
      +  },
      +  "file": {
      +    "description": "File the reference is in.",
      +    "type": "string"
      +  },
      +  "line": {
      +    "description": "Line of the reference.",
      +    "type": "number"
      +  },
      +  "note": {
      +    "description": "Why this was flagged.",
      +    "type": "string"
      +  },
      +  "object": {
      +    "description": "Referenced object name, upper-cased.",
      +    "type": "string"
      +  },
      +  "objectType": {
      +    "description": "SAP object type: \"TABL\" or \"FUNC\".",
      +    "type": "string"
      +  },
      +  "state": {
      +    "description": "Released-API state from the bundled snapshot.",
      +    "enum": [
      +      "deprecated",
      +      "not-released"
      +    ],
      +    "type": "string"
      +  },
      +  "successor": {
      +    "description": "Released successor, when one is known.",
      +    "type": "string"
      +  },
      +  "successorSource": {
      +    "description": "Where the successor came from: SAP's snapshot, the curated map, or none available.",
      +    "enum": [
      +      "sap",
      +      "curated",
      +      "none"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / releasedApiFindings / items / required
      Added value: +[
      +  "object",
      +  "objectType",
      +  "state",
      +  "successorSource",
      +  "edition",
      +  "file",
      +  "line",
      +  "note"
      +]
    • addedOutput schema / properties / releasedApiFindings / items / type
      Added value: +"object"
  2. Changed1 schema field changedv0.12.4
    • addedOutput schema / properties / categories / items / properties / rewrite
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Curated canonical Cloud rewrite for this category, when one is bundled.",
      +  "properties": {
      +    "after": {
      +      "description": "ABAP Cloud skeleton it is usually rewritten to.",
      +      "type": "string"
      +    },
      +    "before": {
      +      "description": "Classic ABAP skeleton the category typically looks like.",
      +      "type": "string"
      +    },
      +    "notes": {
      +      "description": "Caveats — the recipe is illustrative, not drop-in.",
      +      "type": "string"
      +    },
      +    "pattern": {
      +      "description": "Name of the canonical rewrite pattern.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "pattern",
      +    "before",
      +    "after",
      +    "notes"
      +  ],
      +  "type": "object"
      +}
  3. Changed7 schema fields changedv0.12.0
    • addedInput schema / properties / edition
      Added value: +{
      +  "default": "s4hc",
      +  "description": "SAP edition of the bundled Cloudification snapshot to check against: \"s4hc\" (default, SAP Cloud ERP Public Edition), \"btp\" (SAP BTP ABAP environment), or \"pce\" (SAP Cloud ERP Private Edition / on-premise). Release state and successors can differ by edition — the same object may be released in one and not yet in another.",
      +  "enum": [
      +    "s4hc",
      +    "btp",
      +    "pce"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / cleanCoreVocabulary
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "SAP's real ATC vocabulary for released-API/Clean Core checks — see docs/atc-vocabulary.json (F04).",
      +  "properties": {
      +    "checks": {
      +      "description": "The real ATC checks behind released-API governance (name, edition, note).",
      +      "items": {},
      +      "type": "array"
      +    },
      +    "variants": {
      +      "description": "The real ATC check variants, current and deprecated-with-successor.",
      +      "items": {},
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "checks",
      +    "variants"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / edition
      Added value: +{
      +  "description": "SAP edition the released-API findings were checked against.",
      +  "enum": [
      +    "s4hc",
      +    "btp",
      +    "pce"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / grade / description
      Previous value: -"Clean Core tech-debt grade banded on blocker density: A = no blockers, B = ≤ 0.5 blockers/file, C = ≤ 2 blockers/file, D = more. The same objective count as the score, sized for assessment reports."New value: +"Blocker-density tech-debt grade (see gradeMeaning): A = no blockers, B = ≤ 0.5 blockers/file, C = ≤ 2 blockers/file, D = more. The same objective count as the score, sized for assessment reports."
    • addedOutput schema / properties / gradeMeaning
      Added value: +{
      +  "const": "blocker-density",
      +  "description": "What `grade` means: a banding of blockers per file. NOT SAP's own Clean Core Level A–D (see cleanCoreVocabulary.cleanCoreLevels for those) — do not conflate the two.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / releasedApiFindings / description
      Previous value: -"Released-API observations from the bundled SAP Cloudification snapshot (deprecated-API usage, direct non-released table access with successor hints). Informational — NOT counted in cloudBlockerCount or score."New value: +"Released-API observations from the bundled SAP Cloudification snapshot (deprecated-API usage, direct non-released table access with successor hints, and which edition/source answered each one). Informational — NOT counted in cloudBlockerCount or score."
    • changedOutput schema / required
      Previous value: -[
      -  "verdict",
      -  "score",
      -  "grade",
      -  "cloudBlockerCount",
      -  "fileCount",
      -  "categories",
      -  "brokenAtBaseline",
      -  "releasedApiFindings",
      -  "releasedApiSnapshotDate",
      -  "baselineVersion",
      -  "scopeNote"
      -]New value: +[
      +  "verdict",
      +  "score",
      +  "grade",
      +  "gradeMeaning",
      +  "cloudBlockerCount",
      +  "fileCount",
      +  "categories",
      +  "brokenAtBaseline",
      +  "releasedApiFindings",
      +  "releasedApiSnapshotDate",
      +  "edition",
      +  "baselineVersion",
      +  "scopeNote",
      +  "cleanCoreVocabulary"
      +]
  4. First observedv0.4.5

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, but the description goes well beyond them: it discloses the dual-parse-and-diff algorithm, how baseline-only findings become 'broken code' rather than migration work, the category taxonomy (dynpro, list output, native SQL, report events), the presence of a score, A–D grade and verdict, and that released-API observations are snapshot-dated and counted separately. It also pre-empts two likely misreadings — the A–D grade is blocker density, not SAP's Clean Core Level, and a 'ready' verdict is not a certification.

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?

Front-loaded with purpose and mechanism, then usage, then caveats, then an example — a sensible order with little filler. It is, however, a single very dense paragraph, and the parenthetical list of SAP ATC variant names is heavier than an agent needs before calling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a static analyzer with an output schema, three documented parameters and annotations, the description covers everything an agent needs: what the finding categories mean, how the score/grade/verdict relate, what the tool deliberately cannot see, and which external check remains authoritative. Nothing material is left unanswered.

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 description coverage is 100%, so baseline 3 applies, and the description still adds conceptual meaning: it explains why baselineVersion exists (separating pre-existing breakage from cloud blockers) and that the Cloud-version pass is what defines a genuine blocker, plus a worked call showing the files/source shape. It does not add anything about the edition parameter's behavioural effect that the schema enum does not already carry.

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 specific verb and resource — 'Assess how far ABAP source is from ABAP Cloud (Clean Core tier 1)' — and immediately explains the two-pass baseline/Cloud diff mechanism that defines the tool. A reader can distinguish it from check_released_api, lint_abap, or compare_abap without opening any schema.

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?

Gives three concrete triggering situations ('is this cloud-ready / Clean Core compliant', 'before porting classic ABAP', 'graded tech-debt assessment of an abapGit export') plus explicit exclusions: static only, no SAP connection, no ATC, not exhaustive dependency discovery. It does not name sibling tools (e.g. check_released_api) as alternatives, so routing between this and its siblings is left partly to inference.

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