Skip to main content
Glama
Hollway

mcp-abap-abap-adt-api

by Hollway

searchInPackage

Read-only

Search entire ABAP package sources, including sub-packages, for text or regular expressions in one call. Get matching objects, line numbers, and lines directly, instead of reading each object individually.

Instructions

Search the sources of a whole package for text or a regular expression, following its sub-packages: one call instead of a package listing plus a read and a search per object. Answers with the matching objects, the line numbers and the lines, and says how far it got - this reads every source it walks, so narrow it with objectTypes and maxObjects on a large package.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regexNoTreat pattern as a JavaScript regular expression.
patternYesText to find, or a regular expression when regex is true.
maxDepthNoHow deep to follow sub-packages, default 3.
ignoreCaseNoCase-insensitive, which is the default - ABAP is not case-sensitive.
maxObjectsNoCap on the objects read, default 200.
objectTypesNoOnly these ADT types.
packageNameYesPackage to search, e.g. ZAPP_BASE.
contextLinesNoLines of context to include around each match.
skipCommentsNoSkip commented-out lines, which a search for live code usually wants.
maxMatchesPerObjectNoCap on the matches reported per object, default 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true/destructiveHint=false, so the description need not re-state safety. It adds meaningful behavioral context: it walks and reads every source it traverses, and thus can be expensive, with an explicit mitigation. It also describes the response content ('matching objects, the line numbers and the lines') and progress reporting, enriching the annotation-only view.

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?

Two dense sentences: the first defines purpose and differentiator, the second covers output, scope, and a caveat with mitigation. No filler.

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

Completeness5/5

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

The description covers the key behavioral aspects: scope (whole package plus sub-packages), output (matches with line numbers/lines and progress), and risk (reads every source) with mitigation. With no output schema, the described response is sufficient for an agent to decide whether to call it and understand results.

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 baseline is 3. The description references objectTypes and maxObjects in a usage context, but does not add syntax or format details beyond what the schema already provides. No extra meaning is needed.

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 ('Search the sources of a whole package') and adds the key differentiator 'following its sub-packages'. It contrasts itself with a manual multi-step process, making it distinct from sibling search tools like searchObject or findInSource.

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?

States the benefit 'one call instead of a package listing plus a read and a search per object', clearly identifying the use case. It also gives conditional guidance to 'narrow it with objectTypes and maxObjects on a large package', but it does not explicitly name alternative tools or exclusion conditions.

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