Skip to main content
Glama

image_watermark

Adds semi-transparent text watermarks to the bottom-right of batches of images, with adjustable size and opacity for consistent branding or attribution.

Instructions

批量加右下角半透明文字水印。text 为水印文字;size_ratio 为字号占图宽比例(默认 0.05);opacity 0-255(默认 160)。

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": {
      "input_path": "<input_path>",
      "output_dir": "<output_dir>",
      "text": "<text>"
    },
    "name": "image_watermark"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
opacityNo
input_pathYes
output_dirYes
size_ratioNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral weight; it does disclose meaningful traits: fixed bottom-right placement, semi-transparency, batch scope, and two parameter defaults. It omits important write-behavior details such as output file naming, whether originals are preserved or overwritten, and failure handling across a batch.

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?

Two dense sentences with the operation front-loaded and parameter clarifications following; every clause adds information and nothing is wasted.

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

Completeness2/5

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

For a file-writing tool with five parameters, no annotations, and no output schema, the description leaves the batch mechanism undefined: input_path is a single string yet the tool is described as batch, and output naming/overwrite semantics in output_dir are unstated. An agent could still invoke it, but could easily mis-target the input.

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 0%, so the description is the only source of parameter meaning, and it does define text, size_ratio (ratio of image width, default 0.05) and opacity (0-255, default 160) — useful beyond the bare schema. However input_path and output_dir, both required, get no explanation of whether they are files or directories or how batch inputs are supplied.

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 and resource: batch-adding a bottom-right semi-transparent text watermark to images. The operation is unambiguous and none of the siblings (compress/convert/resize/strip/selftest) overlap with watermarking, though the description never explicitly says so.

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?

"批量" implies this is the multi-file entry point and the styling hints (bottom-right, semi-transparent) imply a decorative branding use case, but there is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. supported formats, whether input_path must be a directory).

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