Skip to main content
Glama

lakeformation__CreateTable

Creates a table in a specified LakeFormation catalog and database, defining columns, storage location, table type, owner, and partition keys for data management.

Instructions

[LAKEFORMATION] 创建表操作

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": {
      "catalog_name": "<catalog_name>",
      "database_name": "<database_name>",
      "instance_id": "<instance_id>",
      "owner": "<owner>",
      "owner_type": "<owner_type>",
      "project_id": "<project_id>",
      "storage_descriptor": "<storage_descriptor>",
      "table_name": "<table_name>",
      "table_type": "<table_type>"
    },
    "name": "lakeformation__CreateTable"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYes表所有者。只能包含字母、数字和下划线,且长度为1~49个字符。
commentsNo表描述信息。由用户创建表时输入,最大长度为4000个字符。
retentionNo表保留时间
owner_typeYes所有者类型,USER-用户,GROUP-组,ROLE-角色
parametersNo表参数信息,每个键是一个键字符串,不少于 1 个字节或超过 255 个字节
project_idYes项目id
table_nameYes表名称。只能包含中文、字母、数字和下划线,且长度为1~256个字符。
table_typeYes表类型,MANAGED_TABLE-内表,EXTERNAL_TABLE-外表,VIRTUAL_VIEW-视图,MATERIALIZED_VIEW-物化视图
create_timeNo表创建时间
instance_idYes实例Id
catalog_nameYescatalog名字
database_nameYes数据库名字
partition_keysNo分区列的信息
last_access_timeNo最近一次访问时间
ignore_obs_checkedNo是否忽略内表建表时对Obs路径的限制
last_analyzed_timeNo最近一次分析统计时间
storage_descriptorYes表的存储描述符
view_expanded_textNo如果表是视图,则为视图的扩展文本;否则为 null
view_original_textNo如果表是视图,则为视图的原始文本;否则为 null

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.7/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden for a write operation, yet it discloses nothing: not whether the call is idempotent, what happens if the table already exists, what permissions or instance state are required, what side effects occur on the OBS storage path, or what is returned. For a mutation tool with a large nested schema and zero structured safety hints, this is a critical gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single tag-plus-phrase line wastes nothing but is under-specified rather than concise; there is no front-loaded statement of effect, scope, or prerequisites. Shortness here reflects missing content, not efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 19 parameters, 9 required, deeply nested objects, a mutation semantic, no annotations, and no output schema, the definition is entirely inadequate. An agent has no way to know from the description what creating a table requires or what it affects.

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 description coverage is 100%, so every one of the 19 parameters, including the nested storage_descriptor and its sub-objects, is already documented in the schema. The description adds no additional meaning, but per the high-coverage baseline a 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"创建表操作" (create table operation) restates the tool name CreateTable almost verbatim, adding only a service tag prefix. It does not distinguish this from siblings such as lakeformation__UpdateTable or lakeformation__CreateCatalog, nor does it say what kind of table (managed, external, view) can be created or in what scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance whatsoever: no prerequisites (catalog/database must already exist), no exclusions, and no pointer to UpdateTable or ShowTable as alternatives. The agent must infer everything about when this tool applies from the name alone.

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