Skip to main content
Glama

imgfactory

img_analyze_phash

Use when Perceptual hash: phash, image hash, image dedupe, duplicate photos, near-duplicate detection. image -> application/json. 0.004 USDC per call (prepaid credit or x402 signature).

Input Schema

NameRequiredDescriptionDefault
urlNohttp(s) URL of the image (server fetches it)
dataNodata: URL
base64Noraw base64 of the image bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose pricing (0.004 USDC per call, prepaid credit or x402 signature) and the response content type, which are genuinely useful behavioral facts, but says nothing about determinism, hash algorithm/variant, or what the returned hash actually looks like.

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?

It is short and front-loads the trigger conditions, pricing, and output type. The 'Use when Perceptual hash: phash, ...' keyword-stuffed opening is grammatically awkward and slightly redundant, but nothing is padded or wasteful.

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 simple single-input analysis tool with a fully documented schema, the description covers purpose, cost, and media type. The gap is the return shape: with no output schema, the agent cannot know whether it gets a bare hex hash string or a structured object with algorithm and distance fields.

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% with three well-documented mutually exclusive inputs (url, data, base64), so the schema already does the explanatory work. The description only implies a single image input and adds no syntax or format detail beyond that, making baseline 3 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 identifies the operation as a perceptual-hash computation used for image dedupe and near-duplicate detection, which is specific enough to separate it from siblings like img_analyze_dimensions or img_analyze_qr_scan. The phrasing is a keyword trigger list rather than a clean verb+resource statement, which keeps it just short of a 5.

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?

'Use when ... image dedupe, duplicate photos, near-duplicate detection' gives concrete selection conditions an agent can match against a task. There is no explicit when-not guidance or named alternative for the non-duplicate case, so it stops at 4.

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