Skip to main content
Glama

generate_hash

Read-onlyIdempotent

Hash generator — md5, sha1, sha256, sha384, sha512

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to process, plain UTF-8, for example: The quick brown fox.
algorithmNoHash algorithm: md5, sha1, sha256, sha384 or sha512.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / algorithm / enum
      Previous value: -[
      -  "md5",
      -  "sha1",
      -  "sha256",
      -  "sha384",
      -  "sha512"
      -]New value: +[
      +  "md5",
      +  "sha1",
      +  "sha224",
      +  "sha256",
      +  "sha384",
      +  "sha512",
      +  "sha3-224",
      +  "sha3-256",
      +  "sha3-384",
      +  "sha3-512"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / algorithm / description
      Added value: +"Hash algorithm: md5, sha1, sha256, sha384 or sha512."
    • addedInput schema / properties / text / description
      Added value: +"The text to process, plain UTF-8, for example: The quick brown fox."
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, which correctly describe a pure hashing operation, so the description carries little burden. However, it adds essentially nothing beyond that: no note that output is a fixed-length hex digest, that the same input always yields the same digest, or that no state is stored.

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 short line with the core resource front-loaded and zero filler. Its brevity is appropriate in form, though the space saved is not reinvested in any useful context.

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 two-parameter read-only utility with full schema coverage and no output schema, the description is minimally adequate. It leaves the return value (digest encoding/case) and the fact that omitted algorithms are still valid unaddressed, which matters slightly given the mismatched enum listing.

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 already documented and the baseline of 3 applies. The description's algorithm list adds no meaning beyond the schema and is actually incomplete, listing only md5/sha1/sha256/sha384/sha512 while the enum also includes sha224 and the sha3 family.

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 states a specific verb and resource ('Hash generator') and enumerates supported algorithms, so an agent can immediately distinguish it from siblings like generate_uuid or generate_password. It falls short of a 5 only because the algorithm list is a partial, redundant restatement of the schema enum rather than a distinguishing scope statement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool, no mention of typical purposes (checksums, integrity verification, password-adjacent hashing), and no reference to any alternative. Usage is only implied by the tool name.

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