Skip to main content
Glama

Test SAP Connection

sap_connection_test
Read-onlyIdempotent

Verifies connectivity and authentication to SAP S/4HANA via ADT by performing a CSRF handshake and reading the discovery document. Use it to confirm credentials, base URL, and active ADT service before starting.

Instructions

Verify connectivity and authentication to the configured SAP S/4HANA system via ADT.

Performs a CSRF/session handshake and reads the ADT discovery document. Use this first to confirm SAP_BASE_URL, SAP_CLIENT, SAP_USER, and SAP_PASSWORD are correct and that the /sap/bc/adt ICF service is active.

Args:

  • response_format ('markdown' | 'json'): Output format (default: 'markdown').

Returns (json): { baseUrl, client, user, language, authenticated: boolean, workspaces: string[] }.

Examples:

  • Use when: "Can you connect to SAP?" / first call in a session. Error Handling:

  • 401 -> bad user/password. 404 -> ADT service not active (SICF). TLS errors -> set SAP_VERIFY_SSL=false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
response_formatNoOutput format: 'markdown' (human-readable, default) or 'json' (structured).markdown
Install Server

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, and the description adds valuable behavioral detail beyond those: it performs a handshake, reads the discovery document, and maps errors (401, 404, TLS) to config problems. This gives an agent a clear model of what happens when the tool is called.

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?

The description is well-organized with clear sections for purpose, arguments, return value, usage, and error handling. It is thorough but not verbose, and the core purpose is front-loaded.

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 simple one-optional-parameter tool with rich annotations, the description covers invocation, return shape, usage timing, and error interpretation. Without an output schema, documenting the JSON return structure is especially helpful and makes the description complete.

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 description coverage is 100% and the single parameter already has a clear enum and default in the schema. The description repeats the response_format options without adding new semantic meaning, so the baseline of 3 is appropriate.

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 states a specific verb ('Verify connectivity and authentication') and a specific resource ('configured SAP S/4HANA system via ADT'). It also describes the mechanism (CSRF/session handshake, ADT discovery document), which makes the tool's role clear and distinguishable from sibling SAP tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says to use this tool first to confirm environment configuration and ICF service availability, and gives a natural-language trigger ('Can you connect to SAP?'). It does not explicitly contrast it with related siblings like sap_rfc_ping, so it earns a 4 rather than a 5.

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

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/appmaster3000/sap-abap-mcp-server'

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