Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_table

Creates and activates a new SAP DDIC transparent table from complete annotated DDL, blocking production writes and requiring a transport unless the package is $TMP.

Instructions

Create a new DDIC transparent table (TABL) in SAP and activate it. Refuses to run on production profiles. Provide the complete DDL source (define table { ... }) INCLUDING the standard annotations (@AbapCatalog.tableCategory : #TRANSPARENT, @AbapCatalog.deliveryClass, @AbapCatalog.dataMaintenance), else the source is rejected. The table name in the source must match tableName. Needs a transport unless package is $TMP.

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": {
      "tableName": "<tableName>",
      "description": "<description>",
      "packageName": "<packageName>",
      "source": "<source>"
    },
    "name": "create_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete DDL (define table <name> { key ...; ... }) with @AbapCatalog annotations.
activateNoActivate after writing the source
tableNameYesTable name, e.g. ZKIT_PRODUCT. Must match the name in the source.
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that activation happens, that production profiles are rejected, that a transport is mandatory outside $TMP, and that incomplete DDL is rejected outright. It does not say what happens if a table of that name already exists (overwrite vs. error) or what the response contains, which are the notable remaining gaps for a mutating tool.

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 purpose, then preconditions, then parameter constraints. Every sentence carries a requirement an agent cannot infer elsewhere; no 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 six-parameter mutation tool with no annotations and no output schema, the description covers the critical failure modes: production refusal, missing annotations, name mismatch, and missing transport. What remains uncovered is idempotency/existing-table behavior and any hint about the return value, which matters given there is no output schema to explain it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by enumerating the three annotations that must be present (@AbapCatalog.tableCategory : #TRANSPARENT, deliveryClass, dataMaintenance) rather than just saying 'with @AbapCatalog annotations'. The tableName/source name-match and transport/$TMP rules are also in the schema, so those add nothing new.

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?

States a specific verb and resource — 'Create a new DDIC transparent table (TABL) in SAP and activate it' — and pins the artifact type (transparent TABL), which separates it from siblings like create_table_type, create_structure, and create_cds that also create DDIC-adjacent objects.

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?

Gives concrete when-not conditions: it 'Refuses to run on production profiles' and requires a transport unless the package is $TMP, which tells the agent up front whether the call can succeed. It stops short of naming a sibling alternative for the production or local cases, so the routing guidance is implied rather than explicit.

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