Skip to main content
Glama

Vega Developer Utilities

Hash

hash
Read-onlyIdempotent

Hash a string. algo = md5/sha1/sha256/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>",
      "algo": "<algo>"
    },
    "name": "hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
algoYesHash algorithm: md5, sha1, sha256 or sha512.
textYesText to hash.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / algo / description
      Added value: +"Hash algorithm: md5, sha1, sha256 or sha512."
    • addedInput schema / properties / text / description
      Added value: +"Text to hash."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered without the description. The description adds only a delimiter-separated list of accepted algorithms, nothing about determinism across inputs, case of output hex, or encoding of the input text.

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 followed by the only constrained input's valid values. Nothing is wasted and nothing is buried.

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?

An output schema exists and annotations fully cover safety and idempotency, so the description only needs to establish purpose and accepted algorithms, which it does. Minor omission: output digest format is unstated, though the output schema likely resolves it.

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 in the schema itself, so the baseline is 3. The description restates the algo values rather than adding meaning such as case-insensitivity or whether the returned digest is hex-encoded, so it adds no value beyond 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?

"Hash a string" states a specific verb and resource, which is distinguishable from the encoding/decoding siblings (base64_encode, hex_to_text). It stops short of naming any sibling or scope boundary, so it is clear but not differentiated.

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 when-to-use guidance, no statement of what hashing is for versus the encode/decode/convert siblings, and no exclusions. The use case (one-way digest, unlike reversible base64_encode) is left entirely to the agent's inference.

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