Skip to main content
Glama

verisight_perceptual_hash

Read-onlyIdempotent

Computes a 64-bit 2D-DCT perceptual hash and scans DynamoDB for duplicate photo reuse and Sybil refund rings, helping detect repeated claim images within a Hamming-distance threshold.

Instructions

Computes a 64-bit 2D-DCT frequency perceptual hash (pHash) and scans DynamoDB for duplicate photo reuse and Sybil refund rings.

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": "verisight_perceptual_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_hamming_distanceNoMaximum bit divergence threshold (default: 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is fully covered structurally. The description earns some credit by naming the algorithm and the data source (DynamoDB scan), which annotations cannot convey. However, it leaves out meaningful behavior: how the target image is supplied, the cost/scope of a full table scan, and whether duplicates are returned ranked by Hamming distance.

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 with no filler; the operation and the investigative goal come first. It is dense with domain jargon (2D-DCT, pHash, Sybil rings) but every clause carries information, so no meaningful trimming is needed.

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?

There is no output schema, so the description is the only place a caller could learn what comes back — and it does not say whether the result is a list of duplicate pairs, distances, or the computed hash itself. It also never explains how the image to be hashed is provided, since the schema exposes no image input. Adequate for orientation, but incomplete for a tool whose output shape is undocumented elsewhere.

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 coverage is 100% and the single parameter max_hamming_distance already carries a default and a description, so the baseline of 3 applies. The description adds no interpretation of the threshold — it never mentions max_hamming_distance or what raising/lowering it does to results, so it adds nothing beyond the schema here.

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 pair: computes a 64-bit 2D-DCT perceptual hash and scans DynamoDB for duplicate photo reuse / Sybil refund rings. An agent can tell this is the perceptual-hash duplicate-detection tool rather than, say, the noise/PRNU or JPEG-ghost tool. It stops short of naming a sibling or explicitly contrasting scope, so it is clear but not sibling-differentiated.

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

Usage Guidelines2/5

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

The description gives the purpose but no when-to-use rule, no prerequisites, and no guidance about when a different forensic tool (e.g. a recapture or seam check) would be the right choice. The 'duplicate photo reuse and Sybil refund rings' phrase hints at the investigative context, but that is inferred usage rather than stated guidance.

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