Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

image_hash

Read-onlyIdempotent

Compute perceptual hashes (aHash, dHash, pHash, wHash) for an image and compare two images by Hamming distance and similarity to detect likely near-duplicates.

Instructions

imagepeek: Compute perceptual hashes of an image, optionally compared. To group duplicates among up to 100 images use image_dedupe. Returns perceptual hashes of an image (aHash, dHash, pHash, wHash; 64 or 256 bits, imagehash-compatible) and, with a second image (compare_url or compare_base64), compare: Hamming distance, similarity per algorithm, likely same at pHash distance up to bits / 6. A near-duplicate check, not proof that two images are or are not the same. With a second image the request body may be up to twice the single-image cap. Reads PNG, JPEG, WebP, GIF, TIFF, BMP, ICO and AVIF; other formats and images over 40 megapixels are refused (not charged). Images are never logged or stored. Typically 0.5-2 s. Price: USD 0.002. Free: 3 imagepeek calls per IP per UTC day. Docs: https://tanod.dev/learn/image-perceptual-hash-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "image_hash"
  }
}

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.
hash_sizeNoHash grid: 8 (64-bit hashes, default) or 16 (256-bit).
algorithmsNoDefault: all four.
backgroundNoOpaque #RRGGBB behind both images before hashing; don't mix hashes from different backgrounds.
auto_orientNoApply the EXIF orientation first.
compare_urlNoA second image to compare (or compare_base64).
image_base64NoThe image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url.
compare_base64NoA second image as base64 (at most 10 MB decoded; or compare_url).

Output Schema

NameRequiredDescriptionDefault
bitsNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
inputNo
notesNo
hashesNo
sourceNo
compareNo
final_urlNo
operationNo
source_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantive behavior beyond them: accepted formats, a 40 MP refusal threshold that is 'not charged', no logging or storage, 0.5-2 s latency, $0.002 price, 3 free calls per IP per UTC day, and a doubled body cap in compare mode. These are exactly the operational facts an agent needs and cannot get from annotations.

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-loaded with purpose and the sibling alternative, then grouped into behavior, limits, cost and docs. It is dense and parenthetical-heavy (algorithm and bit variants packed into one clause), so it reads as a wall of text, but essentially every sentence carries distinct, non-redundant information.

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 an 8-parameter tool with an output schema, it covers purpose, alternatives, format support, size caps, cost model, and interpretation of results. Nothing an agent needs to decide whether and how to call it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: supplying compare_url/compare_base64 switches the tool into comparison mode and yields Hamming distance plus per-algorithm similarity, and 'likely same' is defined concretely as pHash distance up to bits / 6. The doubled body cap in compare mode also isn't in the schema.

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 and resource ('Compute perceptual hashes of an image'), names the exact algorithm families, and immediately marks the sibling boundary with image_dedupe. An agent can distinguish this from image_dedupe or image_metadata without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes batch duplicate grouping to image_dedupe ('up to 100 images') and frames this tool as the single/near-duplicate check. It also sets an interpretive boundary — 'a near-duplicate check, not proof' — so the agent knows not to over-trust the result.

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