Skip to main content
Glama

sap_diagnose_message

Diagnose any SAP error, warning, or info message end-to-end. Provide message text, ID, or screenshot to get root cause analysis and fix suggestions.

Instructions

Diagnose a SAP error/warning/info message end-to-end. USE THIS when a user shares a SAP message — whether as a screenshot, text, or message ID. This tool performs a full diagnostic chain: 1. Resolves message class + number (from T100 text search if only text is provided) 2. Locates the exact source code line where the message is raised 3. Reads surrounding code to understand the triggering condition 4. Checks for active enhancements that may interfere 5. Returns a structured diagnosis with root cause analysis and fix suggestions. INPUT: Provide EITHER message_id + message_number (if known) OR message_text (from screenshot). Optionally provide transaction or program_name to scope the search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoSAP language key for T100 search (e.g., S=Spanish, E=English, D=German). Default: S.S
message_idNoMessage class (e.g., V1, F5, ME). Omit if only message text is available.
transactionNoSAP transaction code where the message appeared (e.g., VA01, FB01, ME21N)
message_textNoMessage text from screenshot or user description. Used to reverse-lookup message class/number from T100 when message_id is not known.
program_nameNoABAP program name (e.g., SAPMV45A). Optional if transaction is provided.
message_numberNoMessage number (e.g., 001, 312). Omit if only message text is available.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.2

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. The numbered steps disclose exactly what the tool does (T100 lookup, source location, enhancement check) and explicitly states that it returns a structured diagnosis with root-cause analysis and fix suggestions. It does not mention failure modes or side-effect/read-only status, but the steps clearly imply analysis.

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 longer than average but highly organized: a lead-in use case, a numbered diagnostic chain, and an INPUT section. Each sentence adds information, and the all-caps 'USE THIS' and 'INPUT' signposts make it scannable.

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 tool with no output schema, it sufficiently describes the return (structured diagnosis with root cause and fixes) and covers the full workflow including fallback from text to T100. Gaps like behavior when no message is found or requiring permissions are minor given the detailed input guidance.

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 valuable input-combination semantics: 'Provide EITHER message_id + message_number ... OR message_text', and clarifies transaction/program_name as optional scoping, which helps the agent choose valid parameter groups beyond the individual schema 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 opens with 'Diagnose a SAP error/warning/info message end-to-end', naming a specific verb, resource, and scope. The numbered diagnostic chain (resolve message class/number, locate source, read surrounding code, check enhancements) clearly separates it from siblings like sap_lookup_t100 or sap_read_code, which perform only sub-steps.

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?

It explicitly states 'USE THIS when a user shares a SAP message — whether as a screenshot, text, or message ID', giving a clear trigger condition. It defines the input alternatives (message_id+number vs message_text) and optional scoping params, but does not name sibling alternatives or give when-not-to-use exclusions.

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

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/NicoHern/abapilot-mcp'

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