Skip to main content
Glama

dsc__CreateImageWatermarkByAddress

Embed a text or image blind watermark into an image stored at a Huawei Cloud OBS address and save the watermarked result to a specified OBS location.

Instructions

[DSC] 对指定存储地址信息(目前支持华为云OBS)的图片嵌入文字暗水印或者图片暗水印,已嵌入的水印的图片将存放在用户指定的位置(目前支持华为云OBS),支持的图片格式为:*.jpg, *.jpeg, *.jpe, *.png, *.bmp, *.dib, *.rle, *.tiff, *.tif, *.ppm, *.webp, *.tga, *.tpic, *.gif。

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

Input Schema

NameRequiredDescriptionDefault
dst_fileNo添加水印后的图片存放的地址,格式要求同src_file字段,不设置时,默认取src_file的值,即添加水印后覆盖原文件。
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。
project_idYes项目ID
blind_watermarkNo待嵌入的文字暗水印内容,长度不超过32个字符。当前仅支持数字及英文大小写。与图片暗水印image_watermark二选一。
image_watermarkNo待嵌入的图片暗水印地址,格式要求同src_file字段,与文字暗水印 blind_watermark 二选一,都填写时,生效image_watermark。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one critical behavior: if dst_file is omitted the watermarked image overwrites the original src_file, which is a destructive default worth flagging. It says nothing about permissions/authorization, whether the call is synchronous or job-based, error behavior, or what the caller gets back, so important behavioral context is still missing.

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

Conciseness3/5

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

Purpose and storage location are front-loaded, which is good, but the whole definition is one long run-on sentence that ends in a fourteen-extension enumeration. The format list is useful but would be easier to scan as a structured clause, and the sentence mixes purpose, storage, and validation constraints without separation.

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?

For a six-parameter mutation tool with no annotations and no output schema, the description covers input location, output location, and format constraints but leaves the return value, execution model, and failure modes unexplained. An agent can form the call, but cannot predict what it receives or what happens on partial failure.

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 explains project_id, region_id, src_file, dst_file, blind_watermark, and image_watermark, including their mutual exclusivity and precedence. The description's one genuinely additive contribution is the enumerated list of accepted image formats, which constrains src_file/dst_file values beyond the schema; beyond that it mostly restates what is already structured.

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: embed a text blind watermark or an image blind watermark into an image located at a given storage address (currently Huawei Cloud OBS), with the result written to a user-specified location. The 'by address / OBS' framing implicitly separates it from the upload-based CreateImageWatermark, but no sibling is named, so an agent must infer the distinction.

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

Usage Guidelines2/5

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

The usage context is only implied by the purpose text; there is no explicit statement of when to pick this tool over dsc__CreateImageWatermark or the ShowImageWatermark* verification tools. The only routing-like guidance is the either/or rule between text and image watermarks, which is parameter-level rather than tool-level.

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