Skip to main content
Glama

CheckDdl

Validate CDS view (DDLS) syntax from the active or inactive saved version, or check supplied DDL source code to catch errors before activation.

Instructions

[read-only] Checks the syntax of a CDS view (DDLS) as stored or as the source given.

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": {
      "ddl_name": "<ddl_name>"
    },
    "name": "CheckDdl"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoVersion to check: 'active' or 'inactive'. Without `version` the active version is checked.
ddl_nameYesCDS view name to check, passed as ddl_name.
ddl_sourceNoOptional: DDL source code to validate instead of the saved version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv20.1.0
    • changedInput schema / properties / version / description
      Previous value: -"Version to check: 'active' or 'inactive'. Default: inactive."New value: +"Version to check: 'active' or 'inactive'. Without `version` the active version is checked."
  2. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / ddl_name / description
      Previous value: -"CDS view name to check, passed as ddl_name (e.g., ZI_MY_VIEW)."New value: +"CDS view name to check, passed as ddl_name."
  3. Addedv8.0.0

TDQS

A3.5/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 disclose the read-only nature via the '[read-only]' tag and that validation can target stored or submitted source, but it says nothing about what a failed check produces, whether errors are returned or raised, or whether the check requires authorizations.

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?

A single front-loaded sentence with the read-only tag leading and no padding. The clause 'as stored or as the source given' is slightly awkward but still economical.

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 simple three-parameter validation tool with full schema coverage and no output schema, the definition covers the essentials. The main gap is that the agent learns nothing about the result of a failed syntax check, but the tool's scope and inputs are adequately conveyed.

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 the schema already documents all three parameters including the 'active'/'inactive' enum and the ddl_source override. The description only restates the stored-versus-supplied-source choice, adding minimal meaning beyond the schema.

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: it checks the syntax of a CDS view (DDLS). The 'DDLS' qualifier implicitly separates it from the other Check* siblings that target classes, tables, domains, and so on, though it never names an alternative explicitly.

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 phrase 'as stored or as the source given' hints that the tool can be used in two modes, but there is no explicit when-to-use guidance, no statement of prerequisites (for example, whether the view must exist or be active), and no routing to sibling Check tools.

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