Skip to main content
Glama

sap_run_transaction

Run the ABAP report behind a transaction code, optionally with a selection-screen variant, and return its list output.

Instructions

Run the ABAP report behind a report transaction code, optionally with a selection-screen variant, and return its list output. Resolves the transaction to its program via TSTC, then runs it like sap_run_program (extended timeout with background-job fallback). Parameter 'tcode' (required) is the transaction code. Parameter 'variant' (optional) is a selection-screen variant (create it with sap_save_variant for programs with mandatory fields). LIMITATION: only report transactions (TSTC-PGMNA set) can run headlessly; pure dialog transactions are not supported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tcodeYesTransaction code (e.g. SE16, ZXYZ). Will be uppercased.
variantNoSelection screen variant name (optional).
max_output_linesNoMaximum output lines to return (default: 500)

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?

With no annotations, the description carries the behavioral disclosure burden and does it well. It discloses the TSTC resolution mechanism, extended timeout with background-job fallback, list output, and the important limitation that only report transactions are supported. It does not detail error behavior or side effects of running arbitrary reports, but it provides meaningful behavioral context.

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 reasonably sized and front-loaded with the core behavior, followed by mechanism, parameters, and the limitation. The parameter explanations are slightly redundant with the schema, but they are concise and the limitation is clearly separated, so no sentence is wasted.

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?

Given no annotations and no output schema, the description covers the key operational context: what it runs, how it resolves the transaction, the fallback behavior, the variant prerequisite, and the limitation on transaction types. It is complete enough for an agent to decide whether and how to invoke it, though exact output structure is not specified.

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 description coverage is 100%, so the baseline is 3, but the description adds value beyond the schema. It clarifies that tcode is required, explains that variant is a selection-screen variant for programs with mandatory fields, and links variant creation to sap_save_variant. max_output_lines is not repeated in the description, but the schema already covers it adequately.

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 a specific verb and resource: 'Run the ABAP report behind a report transaction code... and return its list output.' It clearly distinguishes this tool from sap_run_program by explaining that it resolves the transaction to its program via TSTC and then runs it like sap_run_program.

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 gives clear context: report transactions can be run headlessly, pure dialog transactions are not supported, and variants should be created with sap_save_variant for mandatory fields. It does not explicitly state 'use sap_run_program instead when you already have a program name,' but the relationship to sap_run_program and the limitation on transaction types provide strong usage direction.

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