Skip to main content
Glama

Hash text

hash_text
Read-onlyIdempotent

Generate MD5, SHA-1, SHA-2, SHA-3, or RIPEMD-160 hashes from UTF-8 text in hex or base64; select algorithms or return all by default.

Instructions

Hash a string with MD5, SHA-1, SHA-2, SHA-3 or RIPEMD-160. Returns every algorithm unless some are named. (Same as IT-Tools /hash-text.)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "hash_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to hash (UTF-8)
encodingNoDigest encodinghex
algorithmsNoAlgorithms to use; default all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and closed-world behavior, so safety is covered without prose. The description adds only the default-all-algorithms return behavior, which is essentially a restatement of the schema default, and says nothing about the shape of the result (per-algorithm map) or any limits.

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?

Two short sentences, front-loaded with the action and the algorithm list, then the default behavior, with zero filler. The IT-Tools reference is a compact pointer rather than wasted words.

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 simple, single-purpose, read-only tool with a fully documented schema the definition is essentially complete. The one gap is that with no output schema, the description does not say how results are returned (one digest per algorithm versus one combined string).

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?

Schema description coverage is 100%, so the baseline is 3; the description slightly exceeds it by clarifying that algorithms is a selection filter defaulting to all, which reinforces the schema's 'default all' note. Encoding is left entirely to the schema, adding no extra meaning.

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 and resource ('Hash a string') and enumerates the supported digest families (MD5, SHA-1, SHA-2, SHA-3, RIPEMD-160), so the agent can tell it apart from keyed-hash siblings like hmac or bcrypt. It does not explicitly name a sibling or contrast behavior, which keeps it from a 5.

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 clause 'Returns every algorithm unless some are named' implies when to pass the algorithms parameter, but there is no explicit when-to-use or when-not guidance versus hmac (keyed hashing), bcrypt (password hashing), or encrypt_text. Usage is implied rather than stated.

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