Skip to main content
Glama

generate_hmac

Generates a Hash-based Message Authentication Code (HMAC) using a secret key and your choice of SHA-1, SHA-256, or SHA-512. Ensures message integrity and authenticity.

Instructions

Generate HMAC (Hash-based Message Authentication Code)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage to authenticate
keyYesSecret key for HMAC
algorithmNoHash algorithm
Behavior2/5

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

Annotations indicate readOnlyHint=false, but the description does not clarify side effects or output format. It solely restates the function without explaining behavior like mutability, or that encryption is not involved.

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

Conciseness3/5

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

Single sentence is concise but repeats the tool name; lacks structure for quick scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, and description omits return format (hex, base64?). For a cryptographic tool, this is a significant gap.

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 covers 100% of parameters with descriptions. The description adds no additional semantics beyond the schema's parameter names and types.

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 clearly states the tool generates an HMAC, which is a specific cryptographic construct. It distinguishes from sibling hash functions (e.g., hash_sha256) by mentioning 'HMAC' with keyed hash context.

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

Usage Guidelines2/5

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

No guidance on when to choose HMAC over plain hashing or other authentication mechanisms. No alternatives or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wrenchpilot/it-tools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server