Skip to main content
Glama

GetMainPrograms

Reads the main ABAP programs associated with an include, returning every program that includes it or the function group it belongs to.

Instructions

[read-only] Reads the main programs (PROG) of an ABAP include (PROG): each program that includes it, or the function group (FUGR) it belongs to.

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": {
      "include_name": "<include_name>"
    },
    "name": "GetMainPrograms"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
include_nameYesInclude name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden, and it does declare "[read-only]" and explains the dependency direction being resolved. It says nothing about error behavior for unknown or non-include names, authorization requirements, or whether the result shape differs between the two cases it describes.

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?

A single front-loaded sentence with the read-only marker first and no filler. The doubled "(PROG)" parenthetical on both sides of the relation makes the sentence slightly harder to parse than necessary, but nothing is wasted.

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

Completeness3/5

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

For a two-parameter, no-output-schema read tool, the description covers what is queried but not what comes back structurally — whether the answer is a flat list of program names or typed objects, and how the two alternative cases are represented. The detail parameter covers verbosity in the schema, but return shape remains an inference.

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 "detail" enum is fully documented in the schema, so baseline is 3. The description adds only that "include_name" denotes an ABAP include, and it leaves ambiguous whether that name is an include program or can also be a function group name.

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?

States a specific verb and resource ("Reads the main programs (PROG) of an ABAP include") and disambiguates the relationship: either programs that include this include, or the function group it belongs to. It is clear on its own, though it never names a sibling (e.g. GetFunctionInclude or GetFunctionGroup) to contrast with.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the tool to call when it has an include name and needs its owning main program or function group. There is no explicit when-to-use/when-not-to-use framing and no mention of which sibling to prefer for the inverse lookup.

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

Deploy Server

Other Tools