Skip to main content
Glama

Hash, encode/decode (SHA, base64, hex, URL, JWT)

hash_encode
Read-onlyIdempotent

Compute SHA-1/256/384/512 hashes or encode/decode base64, base64url, hex, URL and HTML entities, or decode a JWT's header and payload (signature not verified).

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": {
      "text": "<text>",
      "operation": "<operation>"
    },
    "name": "hash_encode"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesInput text
operationYessha1|sha256|sha384|sha512|base64_encode|base64_decode|base64url_encode|base64url_decode|hex_encode|hex_decode|url_encode|url_decode|html_escape|html_unescape|jwt_decode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-openWorld), so the description's real contribution is the caveat that JWT signatures are not verified — an important behavioral trait an agent would otherwise assume. It stops short of stating that processing is local/in-memory or what the return shape is for each operation.

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 that packs the full operation list with zero filler. Every clause adds a distinct capability and the parenthetical caveat is placed where it is immediately relevant.

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 two-parameter utility with no output schema, the description covers the operation space and the one non-obvious risk (unverified JWT signature). Only the return format per operation (string vs decoded object) and the input direction for decoders are left implicit, which is acceptable for a simple converter.

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 coverage is 100% and the enum tokens already appear in the schema, so the parameter space is structurally documented. The description adds mild grouping semantics (hashing vs encode/decode vs JWT decode) but does not clarify that `text` holds encoded input for decode operations, which is the one thing the schema leaves ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names specific operations on a specific resource: SHA-1/256/384/512 hashing, base64/base64url/hex/URL/HTML encoding and decoding, and JWT header/payload decoding. An agent can match a user request ('base64 decode this') to this tool without reading the schema.

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 enumerated operations implicitly tell the agent which requests belong here, but there is no explicit when-to-use framing, no mention of what to use instead for adjacent tasks (e.g. text_stats, regex_test), and no note on the encode-vs-decode direction being driven by the operation parameter.

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