Skip to main content
Glama

Hash Text

hash_text
Read-only

Compute the hex digest of text with a chosen hash algorithm (MD5, SHA-1, SHA-256, SHA-512, SHA3-256, or RIPEMD-160). Defaults to SHA-256.

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
textYesThe text to hash.
algorithmNoHash algorithm to use. Defaults to SHA-256.SHA-256

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description usefully adds the return format (hex digest) and the default algorithm, which no structured field provides. It omits any note on text encoding (e.g. UTF-8 for non-ASCII input) or digest casing, which matters for reproducing results.

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 sentences, front-loaded with the action and result format, with the default stated last. The full algorithm list duplicates the enum in the schema, which is convenient for scanning but slightly redundant.

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 pure, two-parameter function with full schema coverage and no output schema, the definition supplies enough: what it computes, what it returns, and the default. Only the input-encoding assumption for non-ASCII text is left unstated.

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 the enum already lists the algorithms with a default, so the description adds no parameter meaning beyond the schema. Baseline 3 applies.

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?

"Compute the hex digest of text" gives a precise verb plus resource, and the algorithm enumeration makes the scope unambiguous. It does not distinguish itself from sibling encoders/converters such as base64 or url_encode, so it stops short of 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?

Usage is implied by the purpose: use this when you need a hash of a string. There is no explicit statement of when to prefer it over base64/url_encode, nor any exclusion or caveat about what it must not be used for (e.g. password storage).

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