Skip to main content
Glama

hash_text

Generate a cryptographic hash of any text for password hashing, data integrity checks, or digital signatures. Supports MD5, SHA1, SHA256, SHA512 with hex or base64 output.

Instructions

Generate a cryptographic hash of input text.

Use this for password hashing, data integrity checks, digital signatures,
or any scenario requiring a one-way hash of a string.

Parameters:
    text      — The text to hash (required).
    algorithm — Hashing algorithm: "md5", "sha1", "sha256", or "sha512"
                (default: "sha256"). SHA-256 and SHA-512 are recommended for
                security-sensitive use.
    encoding  — Output encoding: "hex" or "base64" (default: "hex").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
algorithmNosha256
encodingNohex

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It states the tool produces a 'cryptographic hash' (one-way), but does not disclose additional behavioral traits such as determinism, performance characteristics, or limitations (e.g., unsuitability for password storage without salting). The description is adequate but not thorough.

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 concise and well-structured: a single purpose sentence, a brief usage paragraph, and bullet-like parameter descriptions. Every sentence adds value, and the structure makes it easy to parse quickly.

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?

The description covers the core functionality and usage scenarios. Since an output schema exists, the description does not need to explain return values. It does not mention edge cases (e.g., empty text or invalid algorithm), but for a straightforward hash function, this is acceptable. Minor gap in explaining the relationship to sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description adds significant meaning: it explains each parameter (text required, algorithm options with recommendations, encoding options with defaults). This goes beyond the schema's raw type definitions, providing context like 'SHA-256 and SHA-512 are recommended for security-sensitive use.'

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 'Generate a cryptographic hash of input text' and distinguishes from sibling tools like compare_hashes by focusing on one-way hashing. The specific verb 'generate' combined with 'cryptographic hash' leaves no ambiguity about the tool's function.

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 provides explicit use cases: 'password hashing, data integrity checks, digital signatures, or any scenario requiring a one-way hash.' While it does not explicitly exclude inappropriate uses, it strongly implies usage context. Alternatives are not named but are implicitly distinct (e.g., compare_hashes for comparing precomputed hashes).

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/scotia1973-bot/api-hub'

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