Skip to main content
Glama

dsc__ShowDocWatermarkByAddress

Extract embedded text dark watermarks from Word, PowerPoint, Excel, or PDF documents stored at an OBS address; returns the extracted watermark content in JSON.

Instructions

[DSC] 支持对已嵌入文字暗水印的WORD(.docx),PPT(.pptx),EXCEL(.xlsx),PDF(.pdf)类型的文档进行水印提取,用户传入待提取水印的文档地址(目前支持OBS),DSC服务以JSON的格式返回从文档里提取的出的文字暗水印内容。

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__ShowDocWatermarkByAddress"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_typeYes待提取水印的文档类型
src_fileYes待提取文字暗水印的文档的地址,当前只支持华为云OBS对象,格式为 **obs://bucket/object** ,其中bucket为和当前项目处于同一区域的OBS桶名称,object为对象全路径名。例如:**obs://hwbucket/hwinfo/hw.doc**,其中obs://表示OBS存储,hwbucket为桶名,hwinfo/hw.doc为对象全路径名。
region_idYes项目所在region的id,如:xx-xx-1。
project_idYes项目ID
file_passwordNo解密文件的密码, 最大支持长度256。如果Office文档有读密码或域控的权限密码,请输入读密码,或者有读权限的域控密码。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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 behavioral burden. It usefully discloses that the service returns the extracted watermark content as JSON (valuable since there is no output schema) and that the operation is a read/extraction. It says nothing about required permissions, rate limits, or failure modes for documents lacking a watermark, leaving meaningful gaps.

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 front-loaded sentence that leads with the action and supported formats, then the input and return format. It is somewhat dense but every clause contributes; no redundant restatement of the name.

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 read-only extraction tool with a fully documented 5-parameter schema and no output schema, the description covers purpose, input source, supported formats, and return format. Only the lack of permission/error context keeps it short of complete.

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 doc_type, src_file, region_id, project_id, and the optional file_password in detail (even the OBS URI format and password constraints). The description adds only the generic 'document address' framing, so baseline 3 is appropriate.

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 and resource: extracting ('提取') an embedded text blind watermark from a document supplied by address. It also names the supported formats and input mode (OBS URL), which lets an agent distinguish it from creation siblings like CreateDocWatermarkByAddress. However, it never explicitly contrasts with the non-address sibling ShowDocWatermark, so differentiation is implicit.

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?

Usage is only implied: '用户传入待提取水印的文档地址(目前支持OBS)' signals this is the variant to use when the document lives in OBS rather than being uploaded directly. There is no explicit when-to-use/when-not statement, no mention of prerequisites, and no named alternative for non-OBS inputs.

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