Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

where_used

Find where an SAP object is referenced before changing or deleting it; returns a read-only dependency list with capped results and the total reference count.

Instructions

Find where an object is used (the ADT 'where-used list'). Read-only and safe on any profile. Use it before changing or deleting something to see what depends on it. Results can be huge, so they are capped - the total count is always reported.

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": {
      "objectUri": "<objectUri>"
    },
    "name": "where_used"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectUriYesADT URI of the object, e.g. /sap/bc/adt/ddic/tables/ztjplant_email or /sap/bc/adt/oo/classes/zcl_foo
maxResultsNoHow many references to list (default 50). The true total is always reported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description does real work: it declares the operation read-only, safe on any profile, and discloses that results are capped while the true total is always reported. It does not describe what a reference entry contains (URI, line, type) or whether indirect/recursive usages are included, which are the remaining behavioral gaps.

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?

Four short sentences, front-loaded with the purpose, then usage, then result-size behavior. Nothing is redundant and no sentence is filler.

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 a two-parameter, no-output-schema tool, the definition covers purpose, safety, when to call, and result truncation behavior. What is missing is a sense of the returned reference shape, but that gap is modest at this complexity.

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 objectUri format and the maxResults default are already documented. The description's note about capping and total count reinforces maxResults semantics but adds no new syntax or constraints beyond the schema, making 3 the baseline.

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?

The description gives a specific verb and resource ('Find where an object is used') and names the underlying ADT concept ('where-used list'). It is unmistakable against the create_*/get_*_source siblings, though it does not explicitly contrast itself with any named alternative.

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 states a concrete usage context: call it before changing or deleting something to see dependencies. It stops short of saying when not to use it or naming an alternative tool for related lookups, so it is clear but not exhaustive.

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