Skip to main content
Glama

image_watermark

Idempotent

imagepeek: Add a text watermark to an image. For PDFs use pdf_watermark. Returns an image stamped in DejaVu Sans Mono; oversized text shrinks to fit. PNG, JPEG, WebP, GIF, TIFF, BMP, ICO, AVIF; unsupported or >40 MP: not charged. Re-encoding strips EXIF/GPS/XMP/IPTC. Output >15 MB or >50 MP: uncharged 413. Images are not logged; a result is kept only with output "url" (24 h). Typically 0.5-2 s. Price: USD 0.002. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-watermark-api.html

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

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64.
textYesPrintable text.
tileNoStaggered grid; max 2,500 marks.
angleNoClockwise degrees.
colorNoHex #rrggbb or #rrggbbaa.#ffffff
formatNoOutput format (default: the input's; ICO in, PNG out).
marginNoEdge inset or tile gap, in px; default half the font size, at least 4.
outputNobase64 (default): inline. url: stored for 24 hours; link, metadata.base64
opacityNo0 invisible; 1 opaque.
qualityNoEncoder quality 1-100 (lossy formats).
positionNoAnchor for a single mark.bottom-right
font_sizeNoDefaults to 5% of short side.
auto_orientNoApply the EXIF orientation first.
image_base64NoThe image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url.

Output Schema

NameRequiredDescriptionDefault
urlNo
fontNo
bytesNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
inputNo
marksNo
notesNo
widthNo
formatNo
heightNo
sha256No
sourceNo
final_urlNo
font_sizeNo
operationNo
expires_atNo
source_urlNo
data_base64No
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / angle / description
      Previous value: -"Text rotation in degrees, clockwise (-180 to 180, default 0)."New value: +"Clockwise degrees."
    • changedInput schema / properties / color / description
      Previous value: -"Text colour as #rrggbb or #rrggbbaa."New value: +"Hex #rrggbb or #rrggbbaa."
    • changedInput schema / properties / font_size / description
      Previous value: -"Default: 5% of the short side."New value: +"Defaults to 5% of short side."
    • changedInput schema / properties / margin / description
      Previous value: -"Pixels from the edge (default half the font size, at least 4); with tile, the gap between marks."New value: +"Edge inset or tile gap, in px; default half the font size, at least 4."
    • changedInput schema / properties / opacity / description
      Previous value: -"0 (invisible) to 1 (opaque)."New value: +"0 invisible; 1 opaque."
    • changedInput schema / properties / position / description
      Previous value: -"Single mark's place: center, top, bottom, left, right, top-left, top-right, bottom-left or bottom-right (default)."New value: +"Anchor for a single mark."
    • changedInput schema / properties / text / description
      Previous value: -"1-200 printable characters."New value: +"Printable text."
    • changedInput schema / properties / tile / description
      Previous value: -"A staggered grid (at most 2,500 marks)."New value: +"Staggered grid; max 2,500 marks."
  2. Changed30 schema fields changed
    • removedInput schema / properties / angle / title
      Removed value: -"Angle"
    • removedInput schema / properties / auto_orient / title
      Removed value: -"Auto Orient"
    • changedInput schema / properties / color / description
      Previous value: -"Text colour as #rrggbb or #rrggbbaa (default #ffffff)."New value: +"Text colour as #rrggbb or #rrggbbaa."
    • removedInput schema / properties / color / title
      Removed value: -"Color"
    • removedInput schema / properties / font_size / default
      Removed value: -null
    • removedInput schema / properties / font_size / title
      Removed value: -"Font Size"
    • removedInput schema / properties / format / default
      Removed value: -null
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / image_base64 / default
      Removed value: -null
    • removedInput schema / properties / image_base64 / title
      Removed value: -"Image Base64"
    • removedInput schema / properties / margin / default
      Removed value: -null
    • removedInput schema / properties / margin / title
      Removed value: -"Margin"
    • changedInput schema / properties / opacity / description
      Previous value: -"0 (invisible) to 1 (opaque); default 0.5."New value: +"0 (invisible) to 1 (opaque)."
    • removedInput schema / properties / opacity / title
      Removed value: -"Opacity"
    • removedInput schema / properties / output / title
      Removed value: -"Output"
    • removedInput schema / properties / position / title
      Removed value: -"Position"
    • removedInput schema / properties / quality / default
      Removed value: -null
    • removedInput schema / properties / quality / title
      Removed value: -"Quality"
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / properties / tile / title
      Removed value: -"Tile"
    • removedInput schema / properties / url / default
      Removed value: -null
    • removedInput schema / properties / url / title
      Removed value: -"Url"
    • removedInput schema / title
      Removed value: -"image_watermarkArguments"
    • removedOutput schema / properties / bytes / description
      Removed value: -"Bytes."
    • removedOutput schema / properties / content_type / description
      Removed value: -"MIME type."
    • removedOutput schema / properties / expires_at / description
      Removed value: -"UTC expiry."
    • removedOutput schema / properties / input / properties
      Removed value: -{
      -  "animated": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "bytes": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "format": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "frames": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "has_alpha": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "height": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "width": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / notes / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / sha256 / description
      Removed value: -"SHA-256."
    • removedOutput schema / properties / url / description
      Removed value: -"Public link."
  3. Changed6 schema fields changed
    • changedInput schema / properties / output / description
      Previous value: -"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."New value: +"base64 (default): inline. url: stored for 24 hours; link, metadata."
    • addedOutput schema / properties / bytes / description
      Added value: +"Bytes."
    • addedOutput schema / properties / content_type / description
      Added value: +"MIME type."
    • addedOutput schema / properties / expires_at / description
      Added value: +"UTC expiry."
    • addedOutput schema / properties / sha256 / description
      Added value: +"SHA-256."
    • addedOutput schema / properties / url / description
      Added value: +"Public link."
  4. Changed4 schema fields changed
    • addedInput schema / properties / output
      Added value: +{
      +  "default": "base64",
      +  "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window.",
      +  "enum": [
      +    "base64",
      +    "url"
      +  ],
      +  "title": "Output",
      +  "type": "string"
      +}
    • addedOutput schema / properties / expires_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sha256
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / url
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed7 schema fields changed
    • addedInput schema / properties / angle / description
      Added value: +"Text rotation in degrees, clockwise (-180 to 180, default 0)."
    • addedInput schema / properties / color / description
      Added value: +"Text colour as #rrggbb or #rrggbbaa (default #ffffff)."
    • addedInput schema / properties / margin / description
      Added value: +"Pixels from the edge (default half the font size, at least 4); with tile, the gap between marks."
    • addedInput schema / properties / opacity / description
      Added value: +"0 (invisible) to 1 (opaque); default 0.5."
    • addedInput schema / properties / position / description
      Added value: +"Single mark's place: center, top, bottom, left, right, top-left, top-right, bottom-left or bottom-right (default)."
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL of the image (at most 10 MB); or use image_base64."New value: +"Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bytes": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "content_type": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "data_base64": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "final_url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "font": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "font_size": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "format": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "height": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "input": {
      +      "properties": {
      +        "animated": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "bytes": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "format": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "frames": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "has_alpha": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "height": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "width": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "marks": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "notes": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "operation": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "source_url": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "width": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  6. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: names the font, states oversized text shrinks to fit, lists supported formats, and specifies that unsupported/>40 MP inputs and >15 MB/>50 MP outputs are uncharged. It also discloses EXIF/GPS/XMP/IPTC stripping, the no-logging policy with 24 h retention only for output=url, and typical latency — information the annotations cannot convey. Note a mild tension with destructiveHint=false, since metadata is discarded in the re-encoded output, but the source image is not destroyed, so this is disclosure rather than contradiction.

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?

Front-loads purpose and the sibling alternative, then packs limits, cost, and privacy into short semicolon-delimited clauses. Information density is high and each clause carries a distinct fact, though the run-on spec-dump style is slightly harder to scan than a few discrete sentences.

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

Completeness5/5

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

For a 14-parameter, open-world, billed mutation tool with an output schema, the description covers everything an agent needs: format support, size ceilings, error/uncharge behavior, cost and quota, latency, and privacy implications. Return-value structure can be left to the output 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 every parameter including url, text, tile, angle, opacity, and position is already documented. The description adds little parameter-level meaning beyond repeating the 24 h retention for output="url", which the schema already states. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Add a text watermark to an image") and immediately distinguishes the sibling case ("For PDFs use pdf_watermark"). The agent can route correctly without opening either schema.

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

Usage Guidelines4/5

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

Explicitly routes PDF work to pdf_watermark and discloses the free-tier quota (3 calls/IP/UTC day) and price, which affects whether to call it. It does not discuss when to prefer other image siblings, but for a single-purpose transform tool the guidance is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources