Skip to main content
Glama
matetools

@mate-tools/mcp-server

Official
by matetools

base64_encode

Convert any string to Base64 encoding. Optionally use URL-safe variant with - and _ instead of + and /, ideal for URLs.

Instructions

Base64-encode a string. Optional URL-safe variant (RFC 4648 §5: -/_ instead of +//, no padding).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
url_safeNo
Behavior4/5

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

No annotations are present, so the description carries the full burden. It discloses the URL-safe variant's character substitutions and lack of padding, which adds behavioral detail beyond the basic 'encode' meaning. It does not discuss encoding of non-ASCII text or error handling, but those are less critical for a simple utility.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loads the main purpose, and includes only relevant detail about the variant. Every word adds value, achieving high conciseness with a clear structure.

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 utility with no output schema, the description covers the core operation and the optional behavior. It could mention whether the output is standard base64 with padding, but that is implicitly understood from the term 'Base64-encode.'

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?

The input schema has no property descriptions (0% coverage), so the description must clarify parameters. It explicitly explains the url_safe parameter ('URL-safe variant (RFC 4648 §5: -/_ instead of +/, no padding)'). The text parameter is evident from the tool name and the phrase 'encode a string,' making the parameters clear.

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 opens with 'Base64-encode a string,' which clearly identifies the action and resource. It also distinguishes from siblings like base64_decode by specifying the encode direction, leaving no ambiguity about what the tool does.

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?

The description provides context about the optional URL-safe variant and when it might be used, but it does not explicitly mention when not to use this tool or alternative tools such as base64_decode. This is clear context without exclusions, so it earns a 4.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matetools/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server