Skip to main content
Glama

Hash text

hash_text
Read-onlyIdempotent

Compute a cryptographic digest or keyed HMAC of any text. Supports MD5, SHA-1, SHA-256, SHA-384, SHA-512 with hex, base64, or base64url output, and includes constant-time verification.

Instructions

Computes a cryptographic digest (or keyed HMAC) of a string. Supports md5, sha1, sha256, sha384, and sha512 with hex, base64, or base64url output. Can also verify the result against an expected digest using a constant-time comparison.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoIf provided, computes an HMAC keyed by this secret instead of a plain digest.
textYesThe text to hash, interpreted as UTF-8.
encodingNoHow to encode the digest bytes.hex
expectedNoAn expected digest to compare against, using a constant-time comparison.
algorithmNoDigest algorithm. md5 and sha1 are provided for interoperability only.sha256
Behavior5/5

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

Annotations already indicate read-only and idempotent behavior. The description adds important behavioral details: constant-time comparison for verification, and a caveat that md5/sha1 are for interoperability only. This fully discloses key behaviors beyond annotations.

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?

The description is two concise sentences with no fluff. The first sentence covers purpose and options, the second adds the verification feature. It is front-loaded and every sentence adds value.

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

Completeness2/5

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

The description lacks information about the return value or output format, which is critical since no output schema exists. It does not explain what the tool returns (e.g., hex string, boolean for verification). This gap makes it incomplete for an agent to interpret results.

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%, so the schema already describes each parameter. The description does not add significant new meaning beyond what is in parameter descriptions, such as the HMAC computation when key is provided, which is already stated in the schema.

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 description clearly states it computes a cryptographic digest or HMAC of a string, specifies supported algorithms and encodings, and distinguishes itself from sibling tools which do not perform hashing. This provides a specific verb+resource combination.

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 description does not explicitly state when to use this tool versus alternatives or when not to use it. While it's implied for hashing tasks, no comparisons or exclusions are given. It is adequate but lacks guidance on selection relative to siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lllNuggetslll/devkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server