Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_table_type

Create and optionally activate a DDIC table type for an ABAP internal table from a dictionary or built-in row type; production profiles are blocked.

Instructions

Create a new DDIC table type (TTYP/DA) - the ABAP type for an internal table - and optionally activate it. Point it at a dictionary type (structure/data element/table) with rowTypeKind='dictionaryType' and rowTypeName, or at a built-in type with rowTypeKind='predefinedAbapType' plus dataType/length. Refuses to run on production profiles.

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": {
      "tableTypeName": "<tableTypeName>",
      "description": "<description>",
      "packageName": "<packageName>"
    },
    "name": "create_table_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoLength for a built-in row type
keyKindNoPrimary key uniquenessnonUnique
activateNoActivate after creating
dataTypeNoBuilt-in type when rowTypeKind='predefinedAbapType', e.g. STRING, CHAR
decimalsNoDecimals for a built-in row type
transportNoTransport request. Omit only for $TMP.
accessTypeNoInternal table access typestandard
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
rowTypeKindNoWhere the row type comes fromdictionaryType
rowTypeNameNoStructure/data element/table name when rowTypeKind='dictionaryType', e.g. ZST_PLANT_EMAIL
tableTypeNameYesTable type name, e.g. ZTT_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description still carries real behavioral weight: it discloses the production-profile guard and that activation is an optional post-create step ('and optionally activate it'). It leaves unstated what happens on a duplicate name, whether a transport is mandatory outside $TMP, or what is returned after creation — meaningful omissions for an unannotated mutation tool, but the safety-critical constraint is present.

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?

Front-loaded with the object definition, then the two-mode guidance, then the production guard — a sensible information order with no filler. The middle sentence is dense and packs several clauses, but every clause carries operational content rather than restating the name.

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 12-parameter creation tool with no output schema and no annotations, the description covers the shape of the object, both row-type modes, activation, and the production restriction. It stops short of describing the creation result or transport expectations, which an agent would otherwise have to infer from the schema alone.

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; the description earns an extra point by documenting the cross-parameter pairing rule (rowTypeKind determines whether rowTypeName or dataType/length is meaningful), which the per-field schema descriptions state only in isolation. It adds no format or validation detail beyond that.

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?

Uses a specific verb plus a precisely scoped resource: 'Create a new DDIC table type (TTYP/DA)', and immediately glosses it as 'the ABAP type for an internal table', which separates it from create_table and create_structure without naming them. An agent knows exactly what object class this produces.

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 routing rules between the two creation modes ('Point it at a dictionary type ... with rowTypeKind="dictionaryType" and rowTypeName, or at a built-in type with rowTypeKind="predefinedAbapType" plus dataType/length') and a hard exclusion: 'Refuses to run on production profiles.' It does not mention patch_table_type as the alternative for modifying an existing table type, which is the one gap keeping this below a 5.

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