Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

generate_hash

Generate a cryptographic hash of text using MD5 or SHA algorithms (SHA-1 through SHA-512), returning the digest in hex, base64, or both.

Instructions

Hash text using a cryptographic hash function.

Supports MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512. Returns the digest in hex, base64, or both.

Args: text: The string to hash algorithm: Hash function — md5 | sha1 | sha224 | sha256 | sha384 | sha512 (default sha256) encoding: Output format — hex | base64 | both (default hex)

Returns: dict with keys: hex and/or base64, algorithm, input_length, digest_bits, cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
encodingNohex
algorithmNosha256

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure and does substantial work: it lists supported algorithms, output formats, and the exact return dict keys including cost_usd. It does not explore edge cases or security caveats, but for a pure hash function the operational behavior is clearly communicated.

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?

The description is front-loaded with the core purpose, then uses compact labeled sections for arguments and return values. Each line adds necessary information and none is wasted.

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

Completeness5/5

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

No output schema exists, but the description documents the return values and keys, all parameters, defaults, and supported algorithms. For a stateless utility, this is enough for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description fully compensates by defining text, algorithm (with valid values and default), and encoding (with valid values and default). Every parameter is covered with meaning beyond the bare schema types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and object ('Hash text') and names it as a cryptographic hash function, immediately distinguishing it from sibling utilities like generate_password or generate_uuid. It enumerates the exact algorithm set, so an agent can tell this is the hash tool.

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?

The description gives no guidance about when to choose this tool over sibling alternatives, nor any exclusions or prerequisites. It never names comparable tools such as encode_decode or jwt_decode, so the agent must infer usage from the name and first sentence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.