Skip to main content
Glama

hash

Cryptographic hash of text (SHA-256, SHA-512, MD5) - fingerprint data or verify integrity.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to hash
algorithmNoSHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • addedInput schema / properties / algorithm
      Added value: +{
      +  "description": "SHA-256 (default), SHA-384, SHA-512, SHA-1 or MD5",
      +  "type": "string"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "Text to hash",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "text"
      +]
  4. Added

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it implies a deterministic, side-effect-free digest operation but never says so outright. It omits practically relevant behavior such as output encoding (hex vs base64), case of the digest, and whether the algorithm defaults are safe.

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?

A single front-loaded sentence with the resource first and the algorithm parenthetical after; nothing is wasted. The parenthetical is mildly redundant with an already-complete schema, which keeps it from a 5.

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

Completeness3/5

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

For a simple two-parameter, no-output-schema utility this is close to sufficient, since the operation is conceptually self-evident. But it leaves the return value's format (digest string) and the sibling disambiguation unaddressed, which are the two things an agent would still wonder about.

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% and both parameters are documented there, so the baseline is 3. The description's algorithm list is actually incomplete relative to the schema — it names SHA-256, SHA-512 and MD5 but omits SHA-384 and SHA-1 — adding no meaning beyond the schema and slightly undercutting it.

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?

The description names a specific verb and resource ('Cryptographic hash of text') and enumerates the supported algorithms, so an agent can tell it is a digest generator. It stops short of distinguishing itself from the many near-identical siblings such as hash_text, hash_compare, crypto, and entropy.

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 'fingerprint data or verify integrity' implies intended use cases, which is better than nothing. However, there is no explicit when-to-use versus when-not guidance and no routing to hash_compare (for comparing digests) or hash_text, leaving the agent to guess among four overlapping hash-related tools.

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