Skip to main content
Glama

resource_supplement_add

Destructive

Declare extra source text for translation, including speaker names or in-code UI hints, so the localization pipeline captures strings missed by the initial scan.

Instructions

声明一条补充条目:这段文本也要翻(说话人名、代码里的界面提示等)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNo谁拍的板:human / user / agentagent
fileNo出处源码文件(可选,便于核对)
lineNo出处行号(可选)
reasonNo为什么补它(人看得懂的一句话)
sourceYes原文(运行时被查找的那段文本)
targetYes译文
projectNo游戏项目根目录(默认当前目录)
workdirNo工作区目录,默认 <项目>/.gametrans

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=true, so the write nature is already structured. The description adds useful semantics about what a supplement entry represents, but it does not disclose what the 'destructive' aspect means for an add operation (e.g., whether it overrides an existing supplement or affects scan output), nor where the entry persists.

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?

A single front-loaded sentence: the action and the resource come first, followed by the clarification and examples in parentheses. No filler, no repetition of the schema.

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

Completeness3/5

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

With no output schema and a mutation tool carrying 8 parameters, the description covers the 'what' but not the effect: no word on persistence, whether the entry must be revalidated, or how it interacts with resource_supplement_list/remove and resource_validate. Adequate as a minimum, incomplete for a write tool in a family of similar resource_* 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% (8 params, all documented, including defaults and the source/target distinction), so the schema does the heavy lifting. The description only clarifies the concept of the source text ('the runtime-looked-up string'), adding marginal value beyond what the schema already states.

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 states a specific verb+resource ('declare/add a supplement entry') and clarifies the entry's purpose — text that must also be translated, with concrete examples (speaker names, UI strings embedded in code). However, it never distinguishes a 'supplement entry' from the sibling concepts resource_term_add or resource_style_add, so an agent cannot tell when this resource type is the right one to add.

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 phrase 'this text also needs translating' implies the context of use — supplementary strings not picked up by scanning — and the examples give a hint of the cases meant. But there is no explicit when/when-not, no prerequisites, and no pointer to the alternative tools (resource_term_add, resource_supplement_list/remove) the agent should consider.

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