Skip to main content
Glama

pandaone_write

Destructive

Perform audited file writes by requiring reason, problem, and approach metadata, so every code change leaves a structured audit trail before commit.

Instructions

审计写入(核心命令):reason/problem/approach 必填;文本用 --old/--new 或 --content;二进制用 --from-file 或 --content-base64。目标文件不存在时视为创建新文件(须提供内容且扩展名受保护,action=create)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newNo新字符串(仅文本)
oldNo原字符串(仅文本)
fileYes目标文件路径(相对 root)
rootNo.
reasonYes改动原因(必填,至少 5 字符)
contentNo整文件文本内容
problemYes解决的问题(必填,至少 10 字符)
approachYes采用的方法(必填,至少 10 字符)
from_fileNo原文件路径(用于二进制)
content_base64No整文件二进制内容(base64)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.14

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, and the description adds real value beyond that: missing target files are treated as creation (action=create), content becomes mandatory, and the extension must be in a protected set. It still omits prerequisites such as locking and any audit/auth requirements, so not a 5.

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?

One dense but well-ordered sentence group: purpose first, then required fields, then the parameter modes, ending with the create-on-missing edge case. Every clause carries information with no padding.

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 destructive write tool with 10 parameters and no output schema, the description covers required fields, both content modes, and the create case, which is most of what an agent needs. It stops short of describing return behavior or audit/permission side effects, leaving a modest gap.

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 already 90%, so the baseline is 3, but the description adds combinatorial meaning the schema does not: which parameters belong to the text path vs the binary path and that content is required in the create case. It does not explain root/default or minLength constraints, which keeps it at 4.

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?

States a specific verb+resource combination: an audited file write (审计写入) tagged as a core command, which separates it from pandaone_log/pandaone_status style siblings. It does not explicitly contrast itself with those siblings, so it stays a 4 rather than a 5.

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

Usage Guidelines3/5

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

The description does give mode-selection guidance: use --old/--new or --content for text, --from-file/--content-base64 for binary, and it notes the create-on-missing case. However, it never says when to choose pandaone_write over pandaone_log or another sibling, so guidance is implied rather than explicit.

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