Get the AGENTS.md rules block for an ABAP repo
get_abap_agent_rulesGenerate the ABAP section of AGENTS.md/CLAUDE.md to set coding-agent rules for ABAP repos: lint before commit, Cloud readiness, released APIs, scaffolding, and offline unit tests.
Instructions
Generate the ABAP section of a repository's AGENTS.md / CLAUDE.md: the lint-before-commit rule, the ABAP Cloud readiness gate, released-API discipline, scaffold-first, the offline unit-test loop, and the division of labour with an online ADT MCP server. Use this when you set up a new ABAP repo for agentic development or want a team's coding-agent rules to reference the abap-mcp tools consistently. It does not write the file (paste the returned markdown yourself), does not read the workspace, and is not a substitute for the project's own conventions — it encodes the tool contract, nothing project-specific beyond the parameters you pass. Example: { "target": "Cloud", "pairedWith": ["sap-adt-mcp"], "runEnabled": true }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | "Cloud" (default) for ABAP Cloud / Steampunk repos, "classic" for on-prem baselines that still migrate. | Cloud |
| edition | No | Released-API edition the readiness gate should quote: "s4hc" (S/4HANA Cloud Public Edition), "btp" (BTP ABAP Environment), "pce" (Private Cloud Edition). | s4hc |
| pairedWith | No | Online ADT MCP servers the agent can also use: "sap-adt-mcp" (SAP official, ships with ADT), "abap-adt-mcp" (community), or "none". | |
| runEnabled | No | True when run_abap_unit is enabled (ABAP_MCP_ENABLE_RUN=1) so the rules prescribe the offline test loop. | |
| packagePrefix | No | Customer namespace/prefix for new objects, e.g. "Z", "Y" or "/ACME/". | Z |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | The AGENTS.md section, ready to paste. | |
| ruleCount | Yes | Number of rules emitted. |