Skip to main content
Glama

lakeformation__BatchDeletePartition

Batch deletes partitions from a LakeFormation table and optionally purges partition data for non-transactional tables.

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>",
      "partition_values": "<partition_values>",
      "project_id": "<project_id>",
      "table_name": "<table_name>"
    },
    "name": "lakeformation__BatchDeletePartition"
  }
}

Input Schema

NameRequiredDescriptionDefault
if_existNo是否跳过不存在分区
project_idYes项目id
table_nameYes表名称
delete_dataNo非事务表:删除分区的数据;若if_purge为真,立即释放空间。
instance_idYes实例ID
catalog_nameYescatalog名字
database_nameYes数据库名字
partition_valuesYes删除分区值

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.3/5.0
Behavior2/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. It does disclose one meaningful trait — that delete_data=true purges partition-path data immediately for non-transactional tables — but says nothing about permissions, irreversibility, or what happens for transactional tables, which is a serious gap for a destructive operation.

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

Conciseness3/5

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

It is a single short sentence with no wasted words, but it is under-specified rather than concise: the leading bracket tag and the conditional framing push the actual purpose out of the front position.

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

Completeness2/5

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

For an 8-parameter, 6-required destructive delete with no annotations and no output schema, the description is far too thin. It omits the core action (deleting partitions), the required identifiers, and any warning about irreversibility, leaving the agent to reconstruct intent from the name and schema.

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 the baseline is 3. The description's note about delete_data largely restates the schema's own description of that parameter and adds no new semantics for the other seven parameters, including the required partition_values and project_id.

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?

The description reads as a behavioral caveat ('non-transactional table: if delete-data is set, data under the partition data path is deleted immediately') rather than a statement of the tool's purpose. It never says plainly that this tool batch-deletes partitions, so the agent must infer the verb and resource from the name alone.

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 prerequisites, and no pointer to alternatives such as BatchUpdatePartition or ListPartitionNames. The only conditional in the text ('if delete-data is set') describes an internal effect, not when an agent should choose this tool over a sibling.

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