Skip to main content
Glama

Hash text or bytes

hash_data
Read-onlyIdempotent

Compute MD5, SHA-1, SHA-256, and SHA-512 for UTF-8 text or base64 bytes. Pass hmacKey for HMAC and expected to see which digest matches.

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

Input Schema

NameRequiredDescriptionDefault
textNoUTF-8 text to hash. Use this or base64.
base64NoRaw bytes as standard base64.
hmacKeyNoUTF-8 HMAC key. Omit it for a plain digest.
expectedNoHex or base64 digest to compare.

Output Schema

NameRequiredDescriptionDefault
hmacYes
hashesYes
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description adds only that 'expected' reports which digest matches, and stays silent on the fact that no parameter is required - so behavior when neither text nor base64 is supplied is undisclosed. With annotations carrying the safety profile, this is adequate but thin.

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?

Two short sentences, capability and options front-loaded, with no filler. The algorithm enumeration is information-dense rather than redundant, though the second sentence mixes two distinct optional behaviors.

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

Completeness5/5

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

An output schema exists, so return values need no explanation, and the description covers algorithms, input encodings, and both optional modes. For a 4-param pure function with full schema coverage and annotations, nothing essential is missing.

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% and each property already explains itself ('Omit it for a plain digest', 'Hex or base64 digest to compare'), so the baseline of 3 applies. The description largely restates the hmacKey and expected semantics rather than adding format or precedence rules (e.g. what happens if both text and base64 are given).

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 (compute) and resource (digests) plus the exact algorithm set and accepted input encodings, so an agent knows precisely what it does. It does not explicitly differentiate itself from the sibling hash_password, which is the one tool an agent might plausibly confuse it with.

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?

There is parameter-level usage guidance ('Pass hmacKey for HMAC', 'pass expected to see which digest matches') but no tool-selection guidance telling the agent when to prefer this over hash_password or base64_codec. Usage is implied by the input types rather than stated as when/when-not.

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.