Skip to main content
Glama

mechacut

hash_hmac

RFC 2104 HMAC sign & verify over a closed algo set. Sign a payload with a shared key; verify by passing signature -> constant-time match. The webhook trust primitive for agents. Free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>",
      "key": "<key>"
    },
    "name": "hash_hmac"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
algoNosha256
messageYes
key_kindNotext
signatureNo
message_kindNotext

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses security-relevant behavior (constant-time comparison, closed algo set, no cost), but says nothing about key-size requirements, error behavior on mismatch, or what a sign call yields, leaving significant behavioral ground uncovered for a crypto primitive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the operation and mode distinction, with no filler. The trailing 'Free.' is marginal marketing but conveys a cost signal in one word.

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 annotations and no output schema, the description must stand alone, and it leaves the return contract for both sign and verify (output encoding, boolean vs signature) plus the key_kind/message_kind semantics undefined. The core intent and mode switching are covered, so it is adequate rather than complete.

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 0%, so the description must compensate for six parameters. It clarifies the roles of message, key, and signature (the verify switch), but key_kind and message_kind with their text/hex/base64 values are left entirely unexplained, and the encoding contract is the main source of caller error here.

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 names a specific verb pair (sign & verify) and the resource (RFC 2104 HMAC), and constrains it to a closed algorithm set, which separates it from a plain digest tool like hash_digest. It stops short of explicitly naming that sibling as the alternative, so it is clear but not fully differentiated.

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?

It gives concrete mode-selection guidance: use a shared key to sign a payload, or pass signature to verify with a constant-time match. That tells an agent how to drive both modes. It offers no when-not conditions or named alternatives, so it misses the top band.

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.