Skip to main content
Glama

Base64 Encode

base64_encode
Read-onlyIdempotent

Base64 encode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesBase64 encoded string
statusYesHTTP status code
content_typeYesContent-Type header

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "s": "hello world"
      +  },
      +  {
      +    "s": "sensitive data"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "body": {
      +      "description": "Base64 encoded string",
      +      "type": "string"
      +    },
      +    "content_type": {
      +      "description": "Content-Type header",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "HTTP status code",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "content_type",
      +    "body"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the description adds little behavioral context. It does not contradict annotations, but also does not disclose any additional traits (e.g., output format or limitations).

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 description is a single short sentence, which is concise. However, it sacrifices clarity for brevity, leaving out important details. It could be slightly longer without becoming verbose.

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

Completeness3/5

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

Given the tool's simplicity and the presence of an output schema, the description is nearly complete but fails to explain the input parameter. For a trivial encoding tool, this is acceptable but not exemplary.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%. The parameter 's' is left undocumented in the description. While the name and type suggest it is the input string, the description should explicitly state its role and any constraints.

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

Purpose3/5

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

The description 'Base64 encode.' clearly states the verb (encode) and resource (Base64), but it is extremely terse. It is not misleading and distinguishes from the sibling base64_decode, but lacks any additional context about what the tool does exactly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidelines are provided on when to use this tool versus alternatives like base64_decode. The description gives no context about appropriate use cases or prerequisites.

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.