Skip to main content
Glama

SAPLint

Analyze ABAP and CDS source code for issues using local rules. Auto-select cloud or on-prem rules, fix problems, and format code.

Instructions

Run local abaplint rules on ABAP and CDS source code. System-aware: auto-selects cloud or on-prem rules based on detected system type.

Actions:

  • "lint": Check source for issues. Returns errors and warnings. Works for ABAP (PROG, CLAS, INTF, FUNC) and CDS views (DDLS) — catches syntax errors, naming conventions, field order, legacy view patterns.

  • "lint_and_fix": Lint + auto-fix all fixable issues (keyword case, obsolete statements, etc.). Returns fixed source.

  • "list_rules": List all available rules with current config. No source needed.

  • "format": Pretty-print ABAP source via SAP's ADT formatter (uses the SAP system's global formatter settings). Requires source. Returns the formatted source.

  • "get_formatter_settings": Read the SAP system's global PrettyPrinter settings (indentation, keyword style). No params.

  • "set_formatter_settings": Update the SAP system's global PrettyPrinter settings. Requires indentation (bool) and/or style (keywordUpper|keywordLower|keywordAuto|none). Blocked in read-only mode.

For server-side checks (ATC, syntax check, unit tests), use SAPDiagnose instead. Note: lint/lint_and_fix/list_rules run locally; format/*_formatter_settings call the SAP system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesCheck type
sourceNoABAP or CDS source code to lint/format (not needed for list_rules/get_formatter_settings)
nameNoObject name (used for filename detection)
indentationNoPrettyPrinter: indent source (for set_formatter_settings)
styleNoPrettyPrinter: keyword casing (for set_formatter_settings)
rulesNoRule overrides: { "rule_name": false } to disable, { "rule_name": { "severity": "Warning" } } to configure. Overrides system defaults.
Behavior5/5

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

With no annotations, the description carries full burden. It discloses that lint actions run locally while formatter settings call the SAP system, that set_formatter_settings is blocked in read-only mode, and that the tool is system-aware (auto-selects cloud or on-prem rules). These behavioral traits are critical for the agent to understand side effects and constraints.

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?

The description is well-structured with bullet points for each action and clear separation of concerns. It front-loads the overall purpose. However, it could be slightly more concise by reducing redundancy (e.g., 'Returns fixed source' could be merged with action description). Still, every sentence earns its place.

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 complexity (6 actions, two execution modes, 6 parameters), the description covers all necessary aspects: actions, parameter usage, local vs system, read-only restrictions, and differentiation from siblings. There is no output schema, but return values for each action are described (errors/warnings, fixed source, list of rules, formatted source). The description is complete for an agent to select and invoke the tool correctly.

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%, so baseline is 3. The description adds meaning beyond the schema by explaining which parameters are needed per action (e.g., source not needed for list_rules/get_formatter_settings), the purpose of the name parameter (filename detection), and that rules object overrides system defaults. This contextual grouping compensates for the schema's individual descriptions.

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 the tool runs local abaplint rules on ABAP and CDS source code, enumerates six actions with specific purposes, and distinguishes from the sibling SAPDiagnose by noting it handles server-side checks. The verb 'Run' and resource 'abaplint rules' are specific and unique among siblings.

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?

The description explicitly states when to use this tool vs SAPDiagnose: 'For server-side checks (ATC, syntax check, unit tests), use SAPDiagnose instead.' It also provides guidance on when each action is appropriate (e.g., 'No source needed' for list_rules/get_formatter_settings, 'Requires source' for others).

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/marianfoo/arc-1'

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