Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Write Create Udf Func

write_create_udf_func

Create and register a UDF in Apache DolphinScheduler by providing its type, function name, class name, and full name for use in workflows.

Instructions

createUdfFunc

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": {
      "type": "<type>",
      "funcName": "<funcName>",
      "className": "<className>",
      "fullName": "<fullName>"
    },
    "name": "write_create_udf_func"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesUDF类型
argTypesNo参数
databaseNo数据库名
fullNameYes
funcNameYes函数名称
classNameYes包名类名
descriptionNoudf描述,使用说明

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden of behavioral disclosure, and it discloses nothing. It does not state that this is a mutating create operation, what permissions or engine context are required, whether re-creating an existing function fails or overwrites, or what the call returns.

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?

It is a single token, so there is no wasted wording, but that brevity reflects under-specification rather than concision. There is no front-loaded statement of what the tool actually does.

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?

With 7 parameters, 4 required, no annotations, and no output schema, this definition should explain the mutation's effect and any required environment context. Instead it offers a single identifier, leaving the agent unable to call it confidently beyond guessing from parameter names.

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 86%, so the input schema already documents nearly every parameter (type, funcName, className, argTypes, database, description), which sets the baseline at 3. The description adds no meaning beyond the schema, but it also does not need to for the documented parameters.

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 is the tool name restated in camelCase ("createUdfFunc") and nothing more. It does not state the verb/resource relationship in prose or distinguish this from write_update_udf_func or write_delete_udf_func, so the agent must infer purpose 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 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, no prerequisites, and no mention of alternatives such as the update or delete UDF siblings. An agent gets zero routing signal from the description.

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