Skip to main content
Glama

hash_compare

Read-onlyIdempotent

Compares text against an expected hash to verify integrity, using SHA-256 by default with optional algorithm selection.

Instructions

Compare text against an expected hash to verify integrity.

Input Schema

NameRequiredDescriptionDefault
hashYesExpected hash value.
textYesText to hash and compare.
algorithmNoHash algorithm (default: sha256).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered and the description does not contradict it. The description adds only the integrity-verification framing; it does not say what the comparison yields (boolean match, mismatch detail) or how algorithm mismatches are handled.

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?

A single front-loaded sentence with the verb, both inputs, and the purpose — nothing redundant and no filler.

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?

With no output schema, the description should say what the comparison returns (a match boolean or similar), which it omits. Annotations cover the read-only/idempotent profile, but the return shape remains an inference.

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%, with each of the three parameters documented including the sha256 default for algorithm. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 pairs a specific verb (compare) with a concrete resource (text against an expected hash) and states the intent (verify integrity), so it is immediately distinguishable from hash_generate. It stops short of naming hash_generate as the complementary sibling, but the operation itself is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by 'verify integrity' — the agent can infer this is a check rather than a generation step — but there is no explicit when-to-use guidance, no mention of when to prefer hash_generate, and no stated prerequisites.

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

Deploy Server

Other Tools