Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

search_programs

Find ABAP programs in SAP S/4HANA by name pattern using * as a wildcard, with optional object type and result limit filters.

Instructions

Search ABAP programs in SAP S/4HANA by name pattern (use * as wildcard)

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": {
      "query": "<query>"
    },
    "name": "search_programs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch pattern, e.g. Z* or ZFIN* or ZMYPROGRAM
maxResultsNoMax number of results
objectTypeNoObject typePROG

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It never states that this is a read-only operation, whether matching is case-sensitive, what the result entries contain (name only? package? type?), or how truncation at maxResults behaves. The only behavior mentioned, the '*' wildcard, is already demonstrated in the query parameter's schema example.

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?

One short sentence, front-loaded with the verb and resource, and the parenthetical wildcard tip is the only extra — nothing 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 three-parameter read tool with full schema coverage and no output schema or annotations, the definition is minimally sufficient to invoke it. It is not sufficient to predict the response shape (object names vs. full keys) or to understand what the listed object types mean relative to the 'programs' framing.

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%, so query, maxResults, and objectType are all documented with an example and an enum. The description adds no meaning beyond that, and its 'programs' framing actively pulls against the objectType parameter that lets the caller search classes, tables, and views.

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 (Search) and resource (ABAP programs in SAP S/4HANA) plus the name-pattern input mode, which cleanly separates it from the get_*_source and create_* siblings. It loses a point because the objectType enum (FUGR, CLAS, INTF, TABL, VIEW) shows the tool searches far more than 'programs', so the stated scope understates the actual reach.

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?

The wildcard hint implicitly tells the agent this is a discovery-by-name tool, but there are no explicit when-to-use / when-not-to-use statements and no named alternative (e.g. get_object_info for a known object). Guidance is inferable rather than stated.

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