Skip to main content
Glama

TinyFn

compare_hashes

Compare two hashes in constant time (timing-safe).

Input Schema

NameRequiredDescriptionDefault
hash1YesFirst hash
hash2YesSecond hash

Output Schema

NameRequiredDescriptionDefault
hash1Yes
hash2Yes
are_equalYes
comparison_methodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__hash_utils__CompareResponse"New value: +"CompareResponse"
  2. Changed3 schema fields changed
    • removedOutput schema / $defs / CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"CompareResponse"New value: +"app__routers__hash_utils__CompareResponse"
  3. Changed3 schema fields changed
    • addedOutput schema / $defs / CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__hash_utils__CompareResponse"New value: +"CompareResponse"
  4. Changed3 schema fields changed
    • removedOutput schema / $defs / CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"CompareResponse"New value: +"app__routers__hash_utils__CompareResponse"
  5. Changed3 schema fields changed
    • addedOutput schema / $defs / CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__hash_utils__CompareResponse"New value: +"CompareResponse"
  6. Changed3 schema fields changed
    • removedOutput schema / $defs / CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"CompareResponse"New value: +"app__routers__hash_utils__CompareResponse"
  7. Changed3 schema fields changed
    • addedOutput schema / $defs / CompareResponse
      Added value: +{
      +  "properties": {
      +    "are_equal": {
      +      "title": "Are Equal",
      +      "type": "boolean"
      +    },
      +    "comparison_method": {
      +      "title": "Comparison Method",
      +      "type": "string"
      +    },
      +    "hash1": {
      +      "title": "Hash1",
      +      "type": "string"
      +    },
      +    "hash2": {
      +      "title": "Hash2",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "hash1",
      +    "hash2",
      +    "are_equal",
      +    "comparison_method"
      +  ],
      +  "title": "CompareResponse",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / app__routers__hash_utils__CompareResponse
      Removed value: -{
      -  "properties": {
      -    "are_equal": {
      -      "title": "Are Equal",
      -      "type": "boolean"
      -    },
      -    "comparison_method": {
      -      "title": "Comparison Method",
      -      "type": "string"
      -    },
      -    "hash1": {
      -      "title": "Hash1",
      -      "type": "string"
      -    },
      -    "hash2": {
      -      "title": "Hash2",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "hash1",
      -    "hash2",
      -    "are_equal",
      -    "comparison_method"
      -  ],
      -  "title": "CompareResponse",
      -  "type": "object"
      -}
    • changedOutput schema / x-fastmcp-top-level-schema
      Previous value: -"app__routers__hash_utils__CompareResponse"New value: +"CompareResponse"
  8. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It usefully discloses that comparison is constant-time, but it does not state equality semantics, input format expectations, or error behavior. Return value details are covered by the output schema, so that omission is acceptable.

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 one compact sentence with the operation and its key property front-loaded. There is no filler or repetition.

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?

For a simple two-string pure comparison with an output schema and full schema coverage, the description is largely complete: it names the operation and discloses the important timing-safe behavior. Minor gaps around input encoding are not fatal given the low complexity.

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 already documents both parameters at a basic level. The description says two hashes are compared but adds no guidance on expected hash string format or encoding, so it does not meaningfully improve parameter semantics.

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 states a specific verb and resource: comparing two hashes. It also adds the non-obvious constant-time/timing-safe property, which helps distinguish it from generic comparison tools. However, it does not explicitly distinguish itself from close siblings such as constant_time_compare or verify_hash.

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?

The timing-safe wording implies the tool is intended for security-sensitive hash comparisons, but there is no explicit guidance about when to use it instead of compare, constant_time_compare, or verify_hash. Usage is implied rather than stated.

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.