Skip to main content
Glama

Hash Generator API - MD5, SHA-1, SHA-256, SHA-512 of text or a file

hash_generator
Read-onlyIdempotent

Hash text or a file with MD5, SHA-1, SHA-256 and SHA-512, and compare against a hash you already have. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/hash-generator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
textNoThe text
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
fileNameNoFile name with extension, e.g. report.pdf
compareWithNoA hash you have, to compare (optional)
fileContentNoOr send a file as base64 (a data: URI is fine) instead of text

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, but the description adds genuinely non-obvious traits: the work runs server-side, files are deleted immediately, nothing is retained, and there are hard rate limits plus two paid paths. That is real behavioural context an agent could not infer from the schema. It does not describe the response payload, and the 'nothing stored' claim is a bit strong alongside a per-IP daily quota.

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?

The core capability is front-loaded in the first sentence, with operational details (privacy, quotas, payment) following. The second sentence is dense with pricing URLs and key-header detail that is useful but bloats the block; it could be compressed without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, all-optional tool with no output schema, the definition covers inputs, privacy, and cost, which is most of what an agent needs. It leaves two gaps: it never states that at least one of text/files must be supplied, and it does not hint at the return shape (per-algorithm digests and any comparison verdict).

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%, so each parameter is already documented inline, including the base64 fileContent, fileName, and the 60-file/20MB aggregate limit. The description only restates the text/file duality and the compareWith purpose, adding no format or precedence rules (e.g. what happens if both text and files are sent). Baseline 3 applies.

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?

The opening clause gives a specific verb (hash), two input modes (text or a file), the four supported algorithms (MD5, SHA-1, SHA-256, SHA-512) and an extra capability (compare against an existing hash). It is immediately distinguishable from neighbours like password_generator or text_diff, which produce different artifacts.

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?

The description makes the call context clear: hash some text or upload a file, optionally supply a known hash to verify. It also states the access tiers (free 5 calls/day per IP, paid via API key or x402), which affects when the agent should attempt the call. It stops short of explicit when-not-to-use or naming an alternative tool.

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