Skip to main content
Glama
DolphinScheduler MCP Server

DolphinScheduler MCP Server

by melody3240

Write Update Resource

write_update_resource

Updates an existing resource file in Apache DolphinScheduler using its full name, tenant, type, and new JSON body so AI agents can modify stored resources through the REST API.

Instructions

updateResource

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": {
      "fullName": "<fullName>",
      "tenantCode": "<tenantCode>",
      "type": "<type>",
      "name": "<name>",
      "body": "<body>"
    },
    "name": "write_update_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes请求体 JSON 字符串
nameYes资源文件名称
typeYes资源文件类型
fullNameYesRESOURCE_FULLNAME
tenantCodeYes操作系统租户

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 disclosure burden, and it discloses nothing: no statement of what is mutated, whether the body overwrites or merges, permission or tenant-scoping requirements, or irreversibility. A call with five required parameters including a fullName and tenantCode implies real side effects that are entirely undocumented.

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 token is not concise but under-specified; there is no structure, no front-loaded statement of scope, and nothing an agent can act on. Length is not the problem — absence of content is.

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 five-required-parameter mutation tool with no annotations and no output schema, the definition is wholly inadequate. Nothing tells the agent what a successful call changes, what the body JSON must contain, or how this differs from the many sibling write_update_* tools.

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 all five parameters are documented in the schema itself, and the description adds no meaning on top. Baseline 3 applies because the schema does the work, though the terse schema labels (e.g. "RESOURCE_FULLNAME", "资源文件名称") leave format questions the description could have resolved.

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?

"updateResource" only restates the tool name in camelCase; it adds no verb-plus-resource specificity beyond what the name and title already convey. It does not say what kind of resource is updated (a file, a definition, a config) or how it differs from siblings like write_update_resource_content or write_create_resource.

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, when-not-to-use, or alternative-selection guidance of any kind. An agent facing write_update_resource_content, write_create_resource, and query_resource_by_file_name has nothing in this description to route on.

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