Skip to main content
Glama
jsdelivr-mcp
by anvme

jsdelivr_lookup_hash

Find which jsDelivr package or file a hex-encoded SHA-256 hash belongs to by performing a reverse lookup.

Instructions

Reverse lookup: find a package/file by its hex-encoded sha256 hash on jsDelivr.

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": {
      "hash": "<hash>"
    },
    "name": "jsdelivr_lookup_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesHex-encoded sha256 hash of the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/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 behavioral burden. It correctly discloses the direction of the lookup (hash → artifact) and the hash encoding, but says nothing about match behavior on misses, whether the lookup spans npm and GitHub sources, or what identifying fields come back.

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?

One short sentence that front-loads the operation type and states the domain and input. Nothing is wasted or buried.

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 one-parameter read tool this is nearly sufficient, but there is no output schema and the description never indicates what the lookup returns (package name, version, file path, source registry). That return-shape gap is the main thing an agent would still be guessing at.

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% for the single `hash` parameter and the description repeats the same "hex-encoded sha256" detail rather than adding to it. It adds no constraint information beyond the schema, so the baseline 3 applies.

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 names a specific operation (reverse lookup by hash) and a specific resource (package/file on jsDelivr), which is genuinely distinct from the sibling stats/browse tools. It stops short of explicitly contrasting itself with any named sibling, but the verb+resource pairing is unambiguous.

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?

Calling it a "reverse lookup" implies the use case: you already have a hash and want the artifact it belongs to. There is no explicit when-to-use or when-not guidance, and no mention of what to do if the lookup misses or if you only have a partial hash.

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