Skip to main content
Glama

Agent Data Tools: Utilities

Encoding toolbox: Base64, hex, URL, HTML and Unicode

pack_encoding_toolbox
Read-only

Every common encoding of one text in a single call: Base64 and Base64url, hex, URL component and full-URL encoding, HTML-escaped, ROT13, Unicode code points, UTF-8 byte count and Punycode for international domain names, plus automatic decoding when the input already looks like Base64, hex, URL or HTML encoding. Use to prepare data for headers, URLs and markup, or to work out what an encoded string says. Example: text=Café & . Price $0.01/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": {
      "text": "<text>"
    },
    "name": "pack_encoding_toolbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text (up to 20,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses real operating constraints: cost per call, the free tier, that failed calls are free, that repeats are charged (which contextualizes idempotentHint=false), and that the tool 'reads or computes only and changes nothing.' It also discloses the automatic-decode behavior, which annotations cannot express. No contradiction with readOnlyHint or destructiveHint.

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 encoding enumeration is front-loaded and every listed encoding materially defines scope. The trailing pricing/key sentence is denser than needed and slightly dilutes the tool-purpose framing, but it is not filler and the whole thing reads as a single efficient paragraph.

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 one-parameter compute tool with no output schema, the description covers scope, intended uses, side-effect profile, cost, and input expectation well. It stops short of saying how the many encodings are presented in the response, which matters because there is no output schema to fall back on.

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?

There is a single parameter with 100% schema coverage that already documents the 20,000-character limit, so the schema does the heavy lifting. The description adds only an illustrative value ('text=Café & <tags>') hinting that non-ASCII and HTML-sensitive characters are expected input, which is mildly useful but not substantial.

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 a concrete resource and enumerates the exact operations: Base64/Base64url, hex, URL component and full-URL, HTML escaping, ROT13, Unicode code points, UTF-8 byte count, Punycode, plus automatic decoding. 'Every common encoding of one text in a single call' implicitly but clearly separates it from the single-purpose siblings like base64_encode and url_encode, so an agent can pick it on scope alone.

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 states positive conditions explicitly: 'Use to prepare data for headers, URLs and markup, or to work out what an encoded string says,' which covers both encode and decode intents. It does not name when to prefer a narrow sibling such as base64_encode/url_encode instead, or when not to use it, so it falls short of a 5.

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