Skip to main content
Glama

Decodificar Base64url

base64url-decode
Read-onlyIdempotent

Decodifica Base64 URL-safe a texto UTF-8 o hex. Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: codificar en Base64 URL-safe (base64url-encode). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Decodes URL-safe Base64 (RFC 4648 §5, padding optional) to UTF-8 text, hex or base64. When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: encoding text or hex bytes as URL-safe Base64 (base64url-encode). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.

Input Schema

NameRequiredDescriptionDefault
base64urlYesBase64url string (string; required).
output_encodingNoHow to return decoded bytes (optional; one of: utf8, hex, base64; default "utf8").utf8

Output Schema

NameRequiredDescriptionDefault
dataNoany JSON value

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / base64url / examples
      Added value: +[
      +  "Pz8-"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint, and destructiveHint=false. The description adds useful behavior beyond those annotations: deterministic output, no network or stored state, optional padding handling, and explicit input/time/result limits. It does not cover invalid-input behavior, but the added operational constraints are substantial.

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?

The content is well-structured and front-loads purpose, usage, side effects, and limits. However, the full description is duplicated in Spanish and English, which doubles the length without adding new information for an agent and works against conciseness.

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

Completeness5/5

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

Given the output schema, full parameter schema coverage, and rich annotations, the description supplies everything else an agent needs: purpose, alternative routing, determinism, side effects, and operational limits. No critical invocation guidance is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 both parameters. The description adds meaningful semantics beyond the schema, notably RFC 4648 §5 and optional padding for the input, plus the available output encodings. This is useful but not strictly necessary given the complete schema.

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 states a specific verb and resource: decoding URL-safe Base64 to UTF-8, hex, or base64. It distinguishes itself from the sibling encoder by explicitly naming base64url-encode as the not-for alternative. An agent can identify the tool's purpose without opening 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 Guidelines5/5

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

It provides explicit when-to-use guidance ('bytes or text have to be converted to or from this encoding exactly') and explicit when-not-to-use guidance, naming the sibling alternative base64url-encode. The routing condition between encode and decode is unambiguous.

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