hash_text
Generate cryptographic hash of input text (SHA-256, SHA-512, MD5)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| algorithm | No | SHA-256 (default), SHA-384, SHA-512, SHA-1 |
Generate cryptographic hash of input text (SHA-256, SHA-512, MD5)
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| algorithm | No | SHA-256 (default), SHA-384, SHA-512, SHA-1 |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. It signals one-way/cryptographic behavior implicitly but says nothing about determinism, irreversibility, output encoding (hex vs base64), input size limits, or that weaker algorithms like SHA-1/MD5 are unsuitable for security purposes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with zero filler; the supported algorithm hint is parenthetical and easy to scan. Nothing needs trimming.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no annotations and no output schema, the description should specify the output format (hex string length, case) and reconcile the algorithm set. Neither is present, and the algorithm mismatch with the schema risks incorrect invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is only 50%: 'text' is undocumented in both schema and description, and the description's algorithm list ('SHA-256, SHA-512, MD5') directly conflicts with the schema's enum-free list ('SHA-256 (default), SHA-384, SHA-512, SHA-1') — MD5 appears only in the description and SHA-1/SHA-384 only in the schema. An agent cannot tell which algorithms are actually supported, and no default encoding or format guidance is given.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Generate cryptographic hash of input text'), which clearly separates it from sibling transformers like encode_base64, generate_uuid, or check_password_strength. It does not, however, explicitly contrast itself with those siblings, so an agent must infer the one-way vs reversible distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this tool versus alternatives such as encode_base64 or check_password_strength, nor any note about when hashing is inappropriate (e.g., for reversible encoding). Usage is only implied by the verb.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.