Skip to main content
Glama

SAP System

sap_system
Read-onlyIdempotent

Inspect configured SAP systems and read-only state: list connections, ABAP short dumps, kernel memory parameters, and HANA memory metrics for troubleshooting and capacity checks.

Instructions

The configured SAP systems and their state: connections, ADT services, short dumps, memory. Read-only.

Actions (pass action plus that action's parameters; connectionId picks the system): • systems — List the SAP systems this server is configured for: connection id, URL, user and client, with the default connection marked. Call this first when more than one system is configured, and pass the id as connectionId to any other tool. SOAP RFC connections are flagged as read-only (tables and sources only, no ADT). • dumps — List ABAP runtime dumps (the short dumps shown in ST22) from the SAP system: category, short text, dump id and user. Lists them only; it does not return the dump text or stack. Use it to find a failing run after abap_debug(action: "run_class") or abap_test(action: "unit"), then open the dump in ST22. Optional: query. • abap_memory — Report the ABAP application server's key kernel memory / box-health profile parameters (PHYS_MEMSIZE, em/initial_size_MB extended memory, abap/heap_area_*, ztta/roll_*, abap/buffersize, work-process counts) via C_SAPGPARAM — basis-only, so it works on any ABAP box. Companion to sap_system(action: "hana_memory"): on a single-host AS+DB appliance, read BOTH and check that HANA global_allocation_limit + ABAP working memory + OS ≤ physical RAM (over-commit shows up as swap). 16+. Optional: icfPath. • hana_memory — M_* monitoring views — read-only). Reports host RAM/swap, per-service usage, top heap allocators, the largest loaded column tables, row store, SQL plan cache, and the configured global_allocation_limit. Use when the system is slow/swapping or before resizing. Optional: icfPath.

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": {
      "action": "<action>"
    },
    "name": "sap_system"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNodumps: Free-text filter passed to the ADT dump feed; omit to list the dumps ADT returns by default
actionYesWhat to do: systems, dumps, abap_memory, hana_memory (see the tool description)
icfPathNoabap_memory, hana_memory: SICF path of the engine (default: /sap/bc/zmcp_cust)
connectionIdNodumps, abap_memory, hana_memory: SAP system connection ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • changedInput schema / properties / action / description
      Previous value: -"What to do: systems, adt_services, dumps, abap_memory, hana_memory (see the tool description)"New value: +"What to do: systems, dumps, abap_memory, hana_memory (see the tool description)"
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "systems",
      -  "adt_services",
      -  "dumps",
      -  "abap_memory",
      -  "hana_memory"
      -]New value: +[
      +  "systems",
      +  "dumps",
      +  "abap_memory",
      +  "hana_memory"
      +]
    • changedInput schema / properties / connectionId / description
      Previous value: -"adt_services: SAP system connection ID (default connection if omitted) | dumps, abap_memory, hana_memory: SAP system connection ID"New value: +"dumps, abap_memory, hana_memory: SAP system connection ID"
  2. Addedv2.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover readOnly/openWorld/idempotent/non-destructive, yet the description still adds real behavioral context: SOAP RFC connections are read-only and support only tables and sources with no ADT; dumps lists entries but does not return dump text or stack traces; abap_memory is basis-only via C_SAPGPARAM so it works on any ABAP box. These are constraints an agent cannot derive from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The bulleted action list is well front-loaded and skimmable, but the text contains visible corruption: a truncated lead-in for hana_memory ('M_* monitoring views — read-only).'), a dangling '16+.' with no referent, and an unbalanced parenthesis. These artifacts cost the agent parsing effort and occasionally obscure which action a clause belongs to.

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

Completeness4/5

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

For a four-action, four-parameter tool with no output schema, the description covers what each action returns and explicitly notes the negative case (dumps does not return dump text). The one real hole is the orphaned '16+.' requirement, whose subject (ABAP release? memory size? connection count?) is never stated, leaving a condition the agent cannot evaluate.

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 the baseline is 3; the description still contributes cross-parameter meaning by explaining that the id returned by systems must be fed into connectionId for every other action, and by marking query and icfPath as optional per action. It does not add syntax or format detail beyond the schema, so it stays below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line names the resource (configured SAP systems and their state) and the domain areas (connections, ADT services, short dumps, memory), and each of the four actions is described with a specific verb and concrete payload (e.g. dumps returns category, short text, dump id, user; abap_memory reads PHYS_MEMSIZE, em/initial_size_MB via C_SAPGPARAM). The purpose is unmistakable per action, though stray fragments such as 'M_* monitoring views — read-only).' and an orphaned '16+.' blunt the otherwise precise framing.

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?

It gives explicit sequencing and alternatives: call systems first when more than one system is configured and pass the id as connectionId to any other tool; use dumps after abap_debug(action: "run_class") or abap_test(action: "unit") to find a failing run; use hana_memory when the system is slow/swapping or before resizing. It even specifies a combined workflow — read both abap_memory and hana_memory on a single-host appliance and compare against physical RAM.

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