Skip to main content
Glama
kinbinghua-lgtm

agent-core-mcp

hash

Read-onlyIdempotent

Generate cryptographic digests for UTF-8 strings to fingerprint content, check integrity, or deduplicate data. Outputs hex and base64 digests with byte length.

Instructions

Compute a cryptographic hash of a UTF-8 string. Returns hex and base64 digests plus the UTF-8 byte length. Supports sha256 (default), sha512, sha1, md5, and HMAC variants via hmacKey. Use for content fingerprints, deduplication and integrity checks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
algoNoHash algorithm (default sha256)
textYesText to hash
hmacKeyNoIf set, compute HMAC with this key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered. The description adds genuinely new behavioral context: the return shape (hex + base64 digests plus UTF-8 byte length), the default algorithm, and the HMAC mode triggered by hmacKey.

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?

Three tight sentences: purpose first, output/options second, use cases last. No filler, and the most important information is front-loaded.

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?

For a simple deterministic tool with no output schema, the description covers purpose, inputs, defaults and return format. An agent has everything needed to call it correctly and interpret the result.

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 description coverage is 100%, so the schema documents text, algo (with enum and default) and hmacKey, and the description merely restates these. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Compute a cryptographic hash of a UTF-8 string') and enumerates the algorithm set. No sibling tool performs hashing, so the scope is unambiguous within the tool set.

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

Usage Guidelines4/5

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

Gives concrete use cases ('content fingerprints, deduplication and integrity checks'), which tells the agent when this tool is appropriate. It does not name alternatives or exclusions, but no sibling overlaps with hashing, so there is little to route against.

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