Skip to main content
Glama

GetObjectUsages

Retrieve where-used lists for ABAP classes, interfaces, programs, function groups, and type groups; filter results by object type, usage grade, package, and indirect references.

Instructions

Retrieve comprehensive where-used list for ABAP objects (classes, interfaces, programs, function groups, type groups). Supports filtering by object types and usage grades.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_byNoOptional: Group results by package or type (values: none, package, type; default: none)none
max_resultsNoOptional: Maximum number of results to return (default: 500, min: 1, max: 500)
object_nameYesName of the ABAP object
object_typeNoType of object: class, interface, program, function_group, type_group, cds, behavior, table, structure (default: class)class
summary_onlyNoOptional: Return summary with aggregated counts instead of full usage list (default: false)
include_elementsNoInclude element usages like methods and attributes (default: true)
include_indirectNoInclude indirect references (default: true)
include_metadataNoOptional: Include full metadata (URIs, responsible, package) in results (default: true)
local_usage_onlyNoLimit search to local package only (default: false)
include_definitionsNoInclude definition usages (default: true)
include_object_typesNoOptional: Specific object types to search in (e.g., ["class", "interface", "program"]). If not specified, searches in default types (class, interface, program, function_group, type_group)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not: it says nothing about whether this is a read-only (it is implied by 'Retrieve'), how expensive a comprehensive where-used scan is, whether results are paginated, or what happens with unresolved objects. The one useful disclosure, 'comprehensive', is left vague.

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?

Two sentences with the core purpose front-loaded and no filler. It is efficient, though the second sentence spends its budget on a filtering claim that partly mismatches the schema.

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

Completeness2/5

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

An 11-parameter tool with no annotations and no output schema needs more than this; the description never indicates the shape of the returned usage list (elements vs. definitions vs. metadata blobs) even though include_elements, include_definitions, and include_metadata all toggle it. An agent cannot predict result size or structure from the description.

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 coverage is 100%, so every parameter is already documented, which sets the baseline at 3. The description adds little, and its claim of filtering by 'usage grades' maps to no parameter in the schema, a small inaccuracy rather than added meaning.

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 ('Retrieve comprehensive where-used list for ABAP objects') and enumerates the object kinds it covers, which implicitly separates it from the narrower GetClassUsages sibling. It never names that sibling or any other alternative, so differentiation is left to inference.

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

Usage Guidelines2/5

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

No statement of when to use this versus GetClassUsages, GetPackageContents, or SearchObject, and no prerequisites or exclusions. 'Supports filtering by object types and usage grades' hints at capability but not at when this tool is the right choice.

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