Skip to main content
Glama

tool_base64_to_file

Turn base64 data into a file by providing the base64 string, desired filename, and MIME type.

Instructions

[data] Base64 To File

Parameters:

  • base64 (string): Base64

  • filename (string): Filename

  • mimeType (string): MIME Type

Outputs:

  • file (bytes): File

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoFile (base64 file payload)
base64NoBase64
filenameNoFilename
mimeTypeNoMIME Type
Behavior2/5

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

With no annotations, the description carries the full burden but only states that the output is a file in bytes. It does not disclose behavior around invalid base64, edge cases, or how mimeType and filename are used. The ambiguity between the nested 'file' object and flat parameters is also unaddressed, leaving significant behavioral gaps.

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 compact but consists mainly of a redundant list that mirrors the schema. The opening line repeats the tool name, and there is no concise purpose sentence. It is functional but not well-structured for quick understanding.

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

Completeness2/5

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

The tool schema includes both a nested 'file' object and flat fields, but the description ignores this ambiguity and offers no example or clarification. Without an output schema, the minimal 'Outputs: file (bytes)' is insufficient for a complete understanding of the conversion process and return value.

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?

The schema provides 100% coverage for its parameters, and the description repeats the same trivial descriptions (e.g., 'Base64', 'Filename', 'MIME Type') without adding any further meaning. It also omits the 'file' nested parameter, which is present in the schema, potentially misleading the agent about the actual parameter structure.

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 starts with 'Base64 To File' and lists parameters and outputs, which implies the tool converts base64 data into a file. However, it lacks an explicit verb+resource statement and does not distinguish from sibling conversion tools like tool_file_to_base64 or tool_string_to_file. The purpose is understandable but vague.

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

Usage Guidelines1/5

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

No guidance is provided on when to use this tool versus alternatives. It neither mentions any exclusions nor compares with sibling tools. The description simply lists parameters and outputs without context.

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/maple-awa/tool-mcp'

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