Skip to main content
Glama
vino3dx
by vino3dx

write_text_file

Destructive

Write text files with automatic parent directory creation and optional UTF-8 encoding, enabling batch scripts, export manifests, and custom configurations for 3ds Max workflows.

Instructions

写入一个文本文件(自动创建父目录,可选 UTF-8 编码)。用于生成批处理脚本、导出清单、自定义配置。 [English] Write a text file, creating parent folders automatically (optional UTF-8). Use it to emit batch scripts, export manifests or custom configs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes文件绝对路径。 | Absolute file path.
appendNo是否追加而非覆盖,默认否。 | Append instead of overwrite, default false.
contentYes要写入的文本内容。 | Text content to write.
encodingNo编码,默认 utf-8;可选 ansi(跟随系统代码页)。 | Encoding, default utf-8; use ansi for the system code page.utf-8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark the tool as destructive and not read-only. The description adds beyond-annotation behavior: parent folders are auto-created and encoding can be set. It does not explicitly spell out overwrite semantics, but the append parameter and destructive hint cover the key risk.

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

Conciseness5/5

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

Two short bilingual sentences front-load the main behavior and immediately follow with concrete use cases. Every clause earns its place, with no placeholder or tautological wording.

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 simple file-writing tool with fully documented parameters, destructive annotations, and no output schema, the description covers purpose, effects, and use cases sufficiently. It could be more explicit about overwrite-by-default behavior, but the append parameter and destructive hint make this recoverable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaningful path semantics by telling the agent that missing parent directories will be created automatically, and it points to the encoding option. The phrase 'optional UTF-8' is slightly imprecise because utf-8 is the default and ansi is the alternative, but the schema resolves this.

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

Purpose5/5

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

The description states a specific verb and resource ('Write a text file') and adds scope: it automatically creates parent folders and supports encoding. This makes the tool's purpose unambiguous and distinguishes it from siblings like read_text_file or delete_file.

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

Usage Guidelines4/5

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

It explicitly gives use cases ('emit batch scripts, export manifests or custom configs'), which is clear context for when to invoke it. It does not name alternatives or exclusions, so it stops short of full when-to-use versus when-not-to-use guidance.

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