Skip to main content
Glama

ugreen_create_directory

Idempotent

Creates a regular directory at a specified NAS path, with optional parent-directory creation, octal permission mode, and dry-run preview before writing.

Instructions

在指定 NAS 路径创建普通目录。parents 仅在用户要求创建缺失父目录时使用;mode 是八进制权限。创建共享注册项应使用专门的共享工具。仅操作用户指定的对象;写操作失败后先查询当前状态,不自动重试。权限由绿联令牌与 NAS 账户决定。

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": {
      "path": "<path>"
    },
    "name": "ugreen_create_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo0755
pathYes
dry_runNo
parentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnly=false, destructive=false, idempotent=true, openWorld=true), and the description adds real context beyond them: permissions are governed by the UGREEN token and NAS account, and write failures must be diagnosed by re-reading state rather than retried. It omits any explanation of what dry_run actually does, which is the one behavioral gap.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence and each subsequent clause (parents, mode, share alternative, retry policy, permissions) carries distinct operational content. It reads as a compact policy paragraph rather than prose with filler, though the failure-handling and permission clauses could be ordered more logically.

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

Completeness4/5

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

For a 4-parameter mutation tool with no output schema, the description covers purpose, the two non-obvious parameters, the alternative tool, and post-failure protocol. The remaining gap is the unmentioned dry_run flag and the absence of any statement about what a successful call returns, though idempotentHint=true already implies behavior on an existing directory.

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 0%, so the description carries the burden and does explain two of four parameters well: parents as an opt-in for creating missing ancestors, and mode as octal permissions. However, dry_run is never mentioned and path gets no clarification, leaving a materially important flag undocumented in both places.

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

Purpose4/5

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

The description opens with a specific verb+resource+location: 'create an ordinary directory at the specified NAS path', which lets an agent separate it from read/list/stat siblings and hints at a contrast with special directory types. It also redirects share-registration work to a dedicated share tool, but never explicitly contrasts with ugreen_create_file or upload, so sibling differentiation is only partial.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a concrete when-to-use condition for the parents flag ('only when the user asks to create missing parent directories'), names an alternative path for share registration, and prescribes failure behavior ('query current state first, do not auto-retry'). This is explicit routing plus exclusions, not implied guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.