Skip to main content
Glama

encode_decode

Encode or decode strings using base64, hex, or URL formats, and compute MD5, SHA-1, or SHA-256 hashes by selecting the operation. Use it to verify tokens and hashes manually.

Instructions

文字列を base64/hex/URL でエンコード・デコード、または md5/sha1/sha256 のハッシュを計算する。op で操作を選ぶ。トークンやハッシュを人手で確かめる時の常備薬。

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>",
      "op": "<op>"
    },
    "name": "encode_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYesbase64_encode/base64_decode/hex_encode/hex_decode/url_encode/url_decode/md5/sha1/sha256 のいずれか。
textYes対象文字列。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that hashing is one of the modes (implying one-way output) and that nine operations are available, but says nothing about behavior on invalid input (bad base64/hex), charset handling for URL encoding, or what the return value looks like.

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?

Three short sentences, front-loaded with capabilities followed by the operation selector and a usage hint. The closing '常備薬' phrasing is slightly colorful but does convey practical context rather than waste.

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-parameter, fully documented tool with no output schema, the description covers what the tool does and how to drive it. The only real gap is the absent description of the output form (plain string vs. structured), which would help given there is no output schema.

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 schema already enumerates all nine op values and describes 'text' as the target string. The description restates the same algorithm list, adding no syntax or format detail beyond the schema, so the baseline of 3 applies.

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?

The description names specific verbs (encode/decode/hash) plus the resource (string) and the exact algorithm set (base64/hex/URL, md5/sha1/sha256). An agent can immediately tell this is a text-transformation utility, and no sibling (dns_lookup, http_request, json_query, etc.) overlaps with it.

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 a concrete use case — manually verifying tokens and hashes — and instructs that the operation is selected via 'op'. There is no explicit when-not guidance or mention of alternative tools, but the domain is narrow enough that none is really needed.

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