Skip to main content
Glama

Call RFC Function Module

sap_rfc_call
Destructive

Call any RFC-enabled function module by name and import parameters to get all exported values. Discover required parameters first, then execute calls for reading or writing SAP data.

Instructions

Call any RFC-enabled function module and return all exported parameters. Use sap_rfc_describe first to discover parameters.

WARNING: This can execute arbitrary function modules including write operations. Confirm authorization before calling write FMs in production.

Args:

  • function_name (string): RFC FM name.

  • params (object): import/changing parameters (default: {}).

  • response_format.

Returns (json): { functionName, result: { ...exported parameters } }.

Examples:

  • Read material: function_name='BAPI_MATERIAL_GET_DETAIL', params={"MATERIAL":"ROH-001"}.

  • RFC_READ_TABLE: function_name='RFC_READ_TABLE', params={"QUERY_TABLE":"T001","DELIMITER":"|"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNoImport / changing parameters as a JSON object. Tables: pass as arrays of objects.
function_nameYesRFC-enabled function module name.
response_formatNoOutput format: 'markdown' (human-readable, default) or 'json' (structured).markdown
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

The description goes beyond the annotations by explicitly warning that the tool 'can execute arbitrary function modules including write operations' and that authorization should be confirmed in production. This aligns with destructiveHint=true and readOnlyHint=false and gives the agent crucial safety context.

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-structured and front-loaded: purpose, prerequisite, warning, argument summary, return format, and examples. Every sentence contributes operational value; the warning is prominent without bloating the text.

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 an open-world, arbitrary-execution tool with no output schema, the description covers the essential return shape, the need for discovery via sap_rfc_describe, and the write-risk warning. Minor gaps like error behavior and table parameter handling are not fully explained, but the schema and examples cover most practical invocation needs.

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?

Input schema already covers all three parameters with 100% description coverage. The description adds value through concrete examples (BAPI_MATERIAL_GET_DETAIL and RFC_READ_TABLE) and clarifies that params contain import/changing parameters with default {}. This is a meaningful supplement, not just a schema repeat.

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: 'Call any RFC-enabled function module and return all exported parameters.' This clearly distinguishes the tool from siblings like sap_bapi_call (BAPI-specific) and sap_read_table by emphasizing arbitrary RFC function modules.

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 instructs to 'Use sap_rfc_describe first to discover parameters', which routes the agent to the correct discovery predecessor. It also advises confirming authorization before writing in production. It does not explicitly name alternatives like sap_bapi_call, but the guidance is sufficient for typical invocation.

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