Skip to main content
Glama

dsc__CreateDocWatermarkByAddress

Embed visible or invisible text or image watermarks into Word, Excel, PPT, or PDF files stored in OBS and return the location of the watermarked document.

Instructions

[DSC] 对WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf)*类型的文档嵌入文字暗水印、文字明水印或者图片明水印,用户传入待加水印的文档地址(目前支持OBS)和水印相关信息,DSC服务对文档加完水印后返回给用户已嵌入水印的文档的存放地址。

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": {
      "doc_type": "<doc_type>",
      "project_id": "<project_id>",
      "region_id": "<region_id>",
      "src_file": "<src_file>"
    },
    "name": "dsc__CreateDocWatermarkByAddress"
  }
}

Input Schema

NameRequiredDescriptionDefault
frontNo明水印字体大小,取值为[1,100],默认值50
opacityNo明水印的透明度,取值[0,1],默认值为0.3;
doc_typeYes待嵌入水印的文档类型。
dst_fileNo添加水印后的文档存放地址,格式和要求同src_file字段,不设置时,默认取src_file的值,即添加水印后覆盖原文件。
rotationNo明水印旋转角度,逆时针方向,取值为[0,90],默认值45。
src_fileYes待添加水印的文档地址,当前只支持华为云OBS对象,格式为 **obs://bucket/object** ,其中bucket为和当前项目处于同一区域的OBS桶名称,object为对象全路径名。例如:**obs://hwbucket/hwinfo/hw.png**,其中obs://表示OBS存储,hwbucket为桶名,hwinfo/hw.png为对象全路径名。
region_idYes项目所在region的id,如:xx-xx-1。
image_markNo待嵌入的图形明水印文件的地址, 字段格式要求同src_file字段,图形文件的格式必须为“png”或“jpg”,否则返回参数错误;图像文件大小不超过1MB
project_idYes项目ID
visible_typeNo该字段控制明水印嵌入文字还是图片。默认为**TEXT**类型,需填写visible_watermark字段设置明文字水印; 当该字段为**IMAGE**时,需填写image_watermark字段设置水印图片地址此时 ,“visible_watermark”,“font_size”,“rotation”和“opacity”字段无效。
file_passwordNo待加水印文件有密码时,读取文件的密码, 最大支持长度256。如果Office文档有读密码或域控的权限密码,请输入读密码,或者有读权限的域控密码。
blind_watermarkNo暗文字水印内容,与“visible_watermark”字段至少有一个不为空
readonly_passwordNo添加水印后给文件设置只读密码, 最大支持长度256。默认不加只读密码。
visible_watermarkNo明文字水印内容,与暗水印“blind_watermark”字段至少有一个不为空。
marked_file_passwordNo添加水印后给文件设置密码, 最大支持长度256。默认不加文档密码。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the return value (the storage address of the watermarked document) and the OBS-only input constraint, but says nothing about overwrite risk when dst_file is omitted, password/protection side effects, failure modes, or whether the operation is synchronous or long-running.

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?

A single dense sentence, front-loaded with what is watermarked and which formats are supported, then the input and output contract. It is efficient, though the run-on structure makes the return-value clause easy to miss.

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 15-parameter mutation tool with no output schema, the description covers the essential contract: accepted document types, OBS input source, and what is returned. Remaining gaps (overwrite default, watermark-field interdependency, password behavior) are covered by the richly documented schema.

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 the schema already documents every one of the 15 parameters including enums, ranges and defaults. The description adds only the document types and the OBS address concept, leaving the watermark-type/password fields to the schema; baseline 3 applies.

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 (embed blind/visible text or image watermarks into WORD/PPT/EXCEL/PDF documents), names supported formats, and says the input is a document address in OBS and the output is the address of the watermarked file. It implies the address-based variant versus the sibling dsc__CreateDocWatermark, but never names or contrasts that sibling explicitly.

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?

It constrains usage implicitly by noting only OBS-sourced documents are supported and listing the eligible file types, which tells an agent when the tool is applicable. However, there is no explicit when-to-use vs when-not guidance and no routing to dsc__CreateDocWatermark or the Show* verification siblings.

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