Skip to main content
Glama

lakeformation__AddPartitions

Batch-adds partition metadata to a specified LakeFormation table, letting you register new partition locations and storage details for query access.

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>",
      "if_not_exist": "<if_not_exist>",
      "instance_id": "<instance_id>",
      "partitions": "<partitions>",
      "project_id": "<project_id>",
      "table_name": "<table_name>"
    },
    "name": "lakeformation__AddPartitions"
  }
}

Input Schema

NameRequiredDescriptionDefault
partitionsYes添加的分区信息
project_idYes项目id
table_nameYes表名称
instance_idYes实例ID
catalog_nameYescatalog名字
if_not_existYes是否跳过已存在的分区
database_nameYes数据库名字

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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, and it discloses essentially nothing. It does not say this is a mutating operation, whether it is idempotent, what happens on duplicate partitions, whether permissions on the table are required, or whether partial success is possible in a batch.

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?

One short bracketed tag plus a phrase — there is no wasted wording, but the brevity reflects under-specification rather than disciplined concision. Nothing is front-loaded beyond the bare action, and no structure exists to guide a multi-field batch call.

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?

The tool takes seven required parameters including a deeply nested partitions array with a storage descriptor, and it is a mutation with no annotations and no output schema. Against that complexity, a single phrase is far too thin; the agent cannot tell what a successful call returns or what failure modes to expect.

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 schema already documents all seven parameters including if_not_exist, partition_values, and storage_descriptor. The description adds no meaning beyond it — for instance, it never clarifies that partitions must align with the table's partition keys or that if_not_exist controls duplicate handling. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose3/5

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

The description gives a verb+resource ('批量添加分区信息' / batch add partition info), which is more than a tautology, but it stops there. It never distinguishes this from siblings such as BatchUpdatePartition, ListPartitions, or BatchDeletePartition, so an agent must infer that this is the write path for new partitions.

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 at all: no statement about prerequisite catalogs/databases/tables existing, no exclusion against BatchUpdatePartition for modifying existing partitions, and no mention of the alternative listing tools. The agent gets a label, not a routing rule.

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