Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_cds_source

Retrieves the DDL source of a specified SAP S/4HANA CDS view so you can inspect its definition and structure.

Instructions

Read the DDL source of a CDS view from SAP S/4HANA

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": {
      "cdsName": "<cdsName>"
    },
    "name": "get_cds_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
cdsNameYesExact CDS view name, e.g. ZI_MY_VIEW

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 full burden; it does establish that this is a non-mutating read of DDL source specifically (not runtime/XML/metadata). It says nothing about failure modes for a missing or non-CDS name, case sensitivity, or what the returned payload looks like.

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, with no filler or redundant restatement of the tool name.

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 simple one-parameter read tool with full schema coverage this is close to adequate, but with no annotations and no output schema the description should at least characterize the return value (raw DDL text) and basic error behavior. Those gaps leave an agent guessing about the result.

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% and the single cdsName parameter is documented with an example (ZI_MY_VIEW). The description reinforces that the name refers to a CDS view, but adds no syntax or naming-rule detail beyond the schema, so the baseline 3 applies.

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 ('Read') and a specific resource ('DDL source of a CDS view') scoped to SAP S/4HANA. The read verb implicitly contrasts with the create_cds/patch_cds/update_cds siblings, though no sibling is named explicitly.

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?

There is no when-to-use guidance, no stated prerequisites (e.g., object must exist and be active), and no pointer to alternatives such as get_object_info or get_outline for metadata instead of source. The intended use is only inferable from the verb.

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