Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

syntax_check

Run ABAP syntax and consistency checks on existing objects without activating them. Detect errors and warnings before activation to fix issues first.

Instructions

Run the ABAP syntax/consistency check (the same check ADT runs) on an existing object WITHOUT activating it. Read-only and safe on any profile, including production. Use this after writing source and BEFORE activate_object - it reports errors and warnings so you can fix them first. To check source you have just written but not yet activated, pass version="inactive".

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": {
      "objectUri": "<objectUri>"
    },
    "name": "syntax_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoWhich version to check. Use 'inactive' for source that is saved but not yet activated.active
objectUriYesADT URI of the object, e.g. /sap/bc/adt/oo/classes/zcl_foo or /sap/bc/adt/ddic/ddl/sources/zi_foo (with or without /source/main)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden well by stating it is read-only, safe on any profile including production, and does not activate the object. It also says the response contains errors and warnings, though it gives no detail on result structure or how errors are identified.

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?

Three tight sentences: capability and non-activation first, then positioning in the workflow, then the parameter tip. Every sentence carries actionable information with no filler.

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 two-parameter read-only check with no output schema, the description supplies everything needed to invoke it correctly: scope, safety, workflow position, and the version-selection rule.

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 coverage is 100% and the schema already documents both parameters, including the enum meaning of 'inactive'. The description only restates the version='inactive' case in workflow terms, adding minor contextual value rather than new parameter semantics.

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 ('Run the ABAP syntax/consistency check ... on an existing object') and immediately clarifies that it does NOT activate, which distinguishes it cleanly from the activate_object sibling.

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 positions the tool in the workflow: 'Use this after writing source and BEFORE activate_object' with the rationale that errors and warnings can be fixed first, and adds a concrete selection rule for the version parameter when handling unactivated source.

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