Skip to main content
Glama

Base64 Check and Decoded Size

base64_check
Read-onlyIdempotent

Check whether text is valid base64 or base64url (RFC 4648 sections 4 and 5) before you decode it or send it on. Send the text; get back which alphabet it uses, whether the padding is right (and exactly how many '=' to add or remove), the first bad character and its position if there is one, whether line breaks or spaces are in it, whether the unused bits are zero (canonical, RFC 4648 3.5), the decoded size in bytes, and whether the decoded bytes are valid UTF-8 text. The decoded content itself is never returned. Padding rule: required (RFC 4648 default), optional, or none (as JWT and other base64url users do). Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/base64-check). Not legal, tax or financial advice.

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": "base64_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe base64 or base64url text to check (up to 20000 characters). Line breaks and spaces are reported, and ignored only with allow_line_breaks.
paddingNorequired (default, RFC 4648 3.2): '=' must bring the length to a multiple of 4. optional: correct '=' or none. none: no '=' allowed (JWT, RFC 7515).required
alphabetNoauto (default): either alphabet, but not a mix. base64: '+' and '/' (RFC 4648 section 4). base64url: '-' and '_' (section 5).auto
allow_line_breaksNotrue when the format allows line breaks inside (MIME RFC 2045, PEM RFC 7468): spaces, tabs and line breaks are skipped. false (default, RFC 4648 3.3): they make the text need a fix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: decoded content is never returned, input is not stored, no model or network is used, answers are signed with a verifiable key, and errors surface as ok=false with reasons (bad input, too large, hourly limit). This goes well past the readOnly/idempotent hints. It loses a point only because 'hourly limit' is named without any indication of the threshold and the answer fields are listed but not explained.

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?

Core purpose and the 'never returns decoded content' caveat are front-loaded, and most sentences carry real information. The trailing boilerplate ('Free', 'Not legal, tax or financial advice') and the bare list of answer-field names dilute an otherwise tight definition.

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?

With no output schema, the description correctly compensates by enumerating the answer fields and stating the error shape, plus the 20000-character input bound and the no-content/no-storage guarantees. Only the semantics of individual answer fields (does_not, observation, signature, verify) remain unexplained, which is a modest gap for a read-only checker.

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 baseline is 3; the description's padding sentence largely restates the enum descriptions already in the schema. It adds mild framing (JWT-style base64url usage) but no syntax or edge-case detail the schema lacks, so it does not rise above baseline.

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?

States a specific verb and resource — check whether text is valid base64 or base64url under RFC 4648 sections 4 and 5 — plus the payoff (alphabet, padding, decoded size, UTF-8 validity). An agent can distinguish this from siblings like email_address_check or csv_check purely from the text.

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 clear timing cue: 'before you decode it or send it on,' and explains the padding-rule choice with real-world referents (RFC 4648 default vs. JWT/base64url). It does not name an alternative tool or state when not to use it, but no obviously conflicting sibling exists.

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