Skip to main content
Glama

Explain an abaplint rule

explain_abap_rule
Read-onlyIdempotent

Explains abaplint rules in depth with rationale and code examples, helping developers understand and fix findings from static analysis or cloud readiness checks.

Instructions

Explain one abaplint rule in depth: title, description, extended rationale (often citing the Clean ABAP style guide), tags, documentation URL, and good/bad code examples where the rule defines them. Use this when a lint_abap or check_cloud_readiness finding needs justification — to explain to a developer why the finding matters and how to fix it. It does not run analysis and only knows abaplint rules; SAP ATC check documentation is out of scope. Example: explain_abap_rule({ "rule": "exit_or_check" }).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleYesThe abaplint rule key from a finding, e.g. "exit_or_check" or "obsolete_statement".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesRule key.
tagsYesabaplint tags.
titleYesRule title.
docsUrlYesDocumentation URL.
badExampleNoCode the rule flags, if the rule ships an example.
goodExampleNoThe compliant version, if the rule ships one.
shortDescriptionYesOne-line description.
extendedInformationYesExtended rationale; may cite Clean ABAP.
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds that the tool does not perform analysis and is limited to abaplint rules, providing clear behavioral context beyond annotations.

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?

Concise and well-structured: purpose first, then usage context, then limitations, then example. Every sentence adds value with no redundancy.

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?

Given the simple single-parameter schema, annotations, and presence of output schema, the description is fully complete. It covers all necessary information for an AI agent to decide when and how to invoke the tool.

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% with a clear description of the 'rule' parameter. The description adds an example usage (explain_abap_rule({ "rule": "exit_or_check" })), which adds practical value beyond 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?

The description clearly states it explains an abaplint rule in depth, listing specific elements (title, description, rationale, examples). It distinguishes itself from sibling tools like lint_abap and check_cloud_readiness by focusing on justification, not analysis.

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?

Explicitly states when to use: 'when a lint_abap or check_cloud_readiness finding needs justification'. Also specifies what is out of scope: 'does not run analysis and only knows abaplint rules; SAP ATC check documentation is out of scope'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/palimkarakshay/abap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server