Skip to main content
Glama

lakeformation__CreateFunction

Creates a Java function in a specified catalog database, defining its class, owner, type, and OBS resource URIs for data lake processing.

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>",
      "class_name": "<class_name>",
      "database_name": "<database_name>",
      "function_name": "<function_name>",
      "function_type": "<function_type>",
      "instance_id": "<instance_id>",
      "owner": "<owner>",
      "owner_type": "<owner_type>",
      "project_id": "<project_id>"
    },
    "name": "lakeformation__CreateFunction"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYes函数所有者。只能包含字母、数字和下划线,且长度为1~256个字符。
class_nameYes函数类名。长度为1~4000个字符。
owner_typeYes所有者类型,USER-用户,GROUP-组,ROLE-角色
project_idYes项目id
create_timeNo创建时间格式为yyyy-mm-ddThh:mm:sss
instance_idYes实例Id
catalog_nameYescatalog名字
database_nameYes数据库名字
function_nameYes函数名称。只能包含字母、数字和下划线,且长度为1~256个字符。
function_typeYes函数类型,JAVA
resource_urisNo函数地址信息
owner_auth_source_typeNo所有者授权来源类型,IAM-云,SAML-联邦,LDAP-ld用户,LOCAL-本地,AGENTTENANT-委托,OTHER-其它

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

D1.9/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing: not that it mutates state, not what permissions or instance/catalog/database prerequisites are needed, not what happens on name collision, and not what is returned. A single word for a 9-required-parameter mutation is a serious 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 text is short but that brevity reflects under-specification, not economy. There is no structure at all — a bracketed namespace tag plus two Chinese words.

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?

For a 12-parameter, 9-required mutation tool with no annotations and no output schema, the description is completely inadequate. Nothing tells an agent how to assemble the required identity path (project_id/instance_id/catalog_name/database_name) or what the call accomplishes.

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%, with per-property descriptions for owner, class_name, owner_type, function_type, resource_uris, and the path identifiers. The description adds nothing beyond the schema, so the baseline 3 applies rather than higher.

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 "[LAKEFORMATION] 创建函数" is essentially a translated restatement of the tool name CreateFunction. It conveys only the bare verb+resource with no scope, no mention of catalog/database context, and no differentiation from lakeformation__UpdateFunction or the similarly-named functiongraph__CreateFunction.

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 reference to alternatives such as UpdateFunction or ShowFunction. An agent would have to guess that this creates a new function rather than modifying an existing one.

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