Skip to main content
Glama

Agent Data Tools: Utilities

HMAC signature: sign a message with an HMAC (SHA-256 and others) and a key, or check a webhook signature

hmac
Read-only

Compute an HMAC of a message with a key using SHA-256 (default), SHA-1, SHA-384 or SHA-512, in hex and base64. Use to check webhook signatures. The key is used only for this call and is not stored. Example: message=hello, key=secret. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not 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": "hmac"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe key
messageYesThe message
algorithmNosha256 (default), sha1, sha384 or sha512

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false, idempotentHint=false), and the description meaningfully adds to that: the key is used only for this call and not stored, pricing is $0.002/call via x402 USDC or card key, first 10 free and failed calls free. The 'reads or computes only and changes nothing' line largely restates readOnlyHint, but the key-handling and billing details are genuine added context.

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?

The core operation and algorithm list are front-loaded in the first clause, and the example plus pricing sit in a compact trailer. The semicolon-chained pricing sentence is dense, but every element present (cost, free tier, key non-persistence) carries actionable information.

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 more about the return value; 'in hex and base64' does not explain whether both are always returned, in which fields, or how to compare the result against an incoming webhook signature. The phrase 'check a webhook signature' implies a verification workflow the description never details. It is adequate for a simple pure-compute tool but leaves the output shape and verification procedure implicit.

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 message, key and algorithm, making 3 the baseline. The description adds the default ('SHA-256 (default)') and a worked example (message=hello, key=secret), but the mention of 'in hex and base64' does not map to any schema parameter, so it clarifies output rather than inputs.

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?

States a specific verb and resource ('Compute an HMAC of a message with a key') and enumerates the supported algorithms and output encodings, so the operation is unambiguous. It does not distinguish itself from the similarly-oriented sibling evm_verify_signature, leaving the agent to infer that this is symmetric HMAC rather than EVM signature verification.

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 a concrete usage context ('Use to check webhook signatures') and adds a cost-based caution that 'each call is charged, so repeats are not free', which steers the agent away from redundant retries. It stops short of naming alternatives or stating when not to use it, so there is no explicit routing guidance.

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.

Resources