Skip to main content
Glama

Media Create From Base64

media_create_from_base64

Generates Drupal media from base64 file data and a filename, enabling AI assistants to upload files without a public URL.

Instructions

Create media from base64 encoded file data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
filenameYes
mime_typeNo
media_typeNofile
base64_dataYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden yet adds only the input format. It does not state that base64_data and filename are required, warn about payload size limits, or explain how name/mime_type/media_type defaults are applied on creation.

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?

A single front-loaded sentence with no filler and the format constraint placed early. It is appropriately sized, though the terseness reflects under-specification rather than deliberate economy.

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?

A creation/mutation tool with no annotations and a 0%-documented 5-parameter schema needs more than one sentence. An output schema exists so return values need no explanation, but required inputs, defaults, and size/auth constraints are all missing.

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% across 5 parameters, and the description only implicitly covers base64_data. filename is required but unexplained, and media_type's 'file' default plus name and mime_type null defaults get no clarification at all.

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

Purpose4/5

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

States a specific verb+resource ('Create media') and the distinguishing input modality ('from base64 encoded file data'), which separates it from sibling media_create_from_url. It stops short of explicitly naming that alternative, but the purpose is unambiguous.

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 guidance on when to use this over media_create_from_url, create_media, upload_media, or media_bulk_import, nor on prerequirements such as media_type configuration. An agent must infer the choice purely from the input format in the name.

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