Skip to main content
Glama

500Toolbox

Hash Text

hash-text
Read-onlyIdempotent

Returns the hexadecimal digest of the supplied text. MD5 and SHA-1 are offered for checksum and legacy interoperability work only - neither is safe for passwords or signatures, and this tool will not pretend otherwise. Costs 1 credit per call.

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 string to hash.
algorithmNoDigest algorithm. Defaults to sha256.sha256

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds two genuinely new facts: the return is a hexadecimal digest and each call costs 1 credit. It adds nothing about digest length per algorithm or handling of empty/very long input, which would have pushed this higher.

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?

Three short sentences, each earning its place: purpose first, safety caveat second, cost third. No filler and the most important information is front-loaded.

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 two-parameter, purely local transformation with full schema coverage and rich annotations, the description covers purpose, output shape, algorithm caveats and cost. Only minor details (per-algorithm digest length, behavior at the 100000-char ceiling) are 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 coverage is 100%, so both parameters are fully documented structurally, establishing a baseline of 3. The description adds decision guidance for the algorithm parameter by warning against md5/sha1, but it says nothing about sha256 vs sha512 or digest output sizes, so it only marginally exceeds the schema.

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 result: 'Returns the hexadecimal digest of the supplied text.' The follow-up sentence about MD5/SHA-1 being for legacy/checksum use implicitly separates it from the password-hashing siblings (argon2-hash, bcrypt-hash) without naming them, so differentiation is present but indirect.

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?

Gives clear use context ('checksum and legacy interoperability work') and an explicit exclusion ('neither is safe for passwords or signatures'). It stops short of naming the alternative tool an agent should pick for password hashing, so routing is inferred rather than stated.

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