Skip to main content
Glama
Wuodan

mcp-base64

by Wuodan

Decode Base64 To File

decode_base64_to_file

Decode a base64 string and write the resulting binary data to a file. Provide the encoded content and an absolute path to save the decoded file.

Instructions

Decode a base64 string and write it to a file.

This tool takes base64 encoded content and writes the decoded binary data to a file. Only absolute paths are allowed for security reasons.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path where to save the decoded file
base64_contentYesBase64 encoded content to decode and write to file

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the mutation (writes to a file) and the absolute-path restriction, but omits other important behaviors such as whether an existing file is overwritten, whether directories are created, or how invalid base64 input is handled. These gaps are material for a file-writing tool.

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 with zero redundancy. The primary purpose is front-loaded in the first sentence, and the security constraint is a concise, valuable addition. Every sentence earns its place without any fluff.

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 tool with only two required parameters and an output schema (signal indicates true), the description covers the essential purpose and a key constraint. It lacks explicit details on overwrite behavior and error handling, but the tool's simplicity and the presence of an output schema reduce the need for exhaustive elaboration. It is adequate but not flawless.

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% (both parameters have clear descriptions in the schema), so the baseline is 3. The tool description adds only the absolute-path security constraint, which is more behavioral than parameter-specific. It does not enrich the meaning of either parameter beyond what the schema already provides.

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 explicitly states the action ('Decode a base64 string and write it to a file') with a clear verb and resource, and it naturally differentiates from the sibling encode_file_to_base64 by being the reverse operation. No ambiguity remains about what the tool accomplishes.

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 a concrete usage constraint ('Only absolute paths are allowed for security reasons'), which is directly actionable. It does not explicitly name when to use this tool versus the sibling, but the opposite nature of the sibling makes the choice obvious. There are no exclusion conditions beyond the path requirement.

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

Deploy Server

Other Tools