Skip to main content
Glama

hash

hash
Read-only

Content-addressable hashing for caching and dedup. Three algorithms: sha256 (via node:crypto / Web Crypto), xxhash64 and murmur3 (inline pure-JS, deterministic across runs). Returns hex digest + algorithm + byte count. $0.002 USDC per successful call (x402, client-paid); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds value beyond them: determinism guarantees per algorithm, the exact return shape (hex digest + algorithm + byte count), and a clear cost model including that failed calls are not charged. What it omits is what happens on unsupported input or how large inputs are handled.

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?

Three tight sentences, front-loaded with purpose, then implementation detail, then return/cost semantics. No filler, and each clause carries distinct information.

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?

Return values and cost are fully covered, so no output schema is needed. The unresolved gap is input: an empty object schema plus a description that never says what content is hashed or how the algorithm is selected leaves an agent unable to construct a correct call from the definition alone.

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?

With zero parameters, the baseline is 4; however, the description advertises three selectable algorithms (sha256, xxhash64, murmur3) that have no corresponding schema field, leaving the agent unsure how an algorithm is chosen. That ambiguity lowers it below baseline rather than raising it.

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?

'Content-addressable hashing for caching and dedup' names a specific operation and its purpose, which cleanly separates it from siblings like chunk, dedupe, and diff. It does not explicitly contrast with a sibling, but the resource and verb are 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?

The phrase 'for caching and dedup' implies the contexts where this tool applies, but there is no explicit when-to-use versus when-to-use-an-alternative guidance, nor any statement of prerequisites or exclusions relative to the 12 sibling tools.

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.