Skip to main content
Glama
md-log

md-log-mcp

Official
by md-log

Upload Asset

upload_asset

Upload an image from a local file or base64 data and receive an asset:// reference to embed in markdown.

Instructions

Upload a single image as an asset (reserve -> presigned PUT -> complete) and return an 'asset://' reference you can embed in markdown image syntax: alt. Provide the image as EITHER data_base64 (inline base64) OR file_path (a local file to read) — exactly one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe .md document path this asset is associated with (used for quota/scoping).
filenameNoOriginal file name. Optional with `file_path` (defaults to its basename).
file_pathNoAbsolute or relative local filesystem path to the image file to read and upload. Provide EITHER this OR `data_base64`, not both.
data_base64NoBase64-encoded raw image bytes. Provide EITHER this OR `file_path`, not both.
content_typeNoMIME type, e.g. 'image/png'. Optional with `file_path` when the extension is recognized (png/jpg/jpeg/gif/webp/avif).
Behavior4/5

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

With no annotations, the description carries the full burden. It reveals the internal 3-step process (reserve -> presigned PUT -> complete) and the return format. This is good transparency, though it could mention potential side effects like overwriting an existing asset with the same key.

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 a single, well-structured sentence that front-loads the purpose and process, then details parameters. Every part adds value with no wasted words.

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?

Given the 5 parameters (100% schema coverage), no output schema, and moderate complexity, the description is mostly complete. It explains the return value and process. However, it lacks guidance on error cases (e.g., what happens if both image sources are provided) and does not specify if the asset key is auto-generated or derived from the filename.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant value by explaining the process, the mutual exclusivity of file_path/data_base64, and the return format. It clarifies the 'path' parameter's role as a document association for quota/scoping, which is not in the schema's parameter description.

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 clearly states the verb 'Upload a single image as an asset' and specifies the resource (an image asset). It distinguishes from sibling tools (e.g., save_markdown, append_to_markdown) by focusing on image upload and returning a markdown-compatible reference.

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 explains when to use the tool: for embedding an image in markdown. It explicitly states the mutually exclusive requirement of `data_base64` or `file_path`. However, it does not explicitly state when not to use it or provide alternatives for other asset types.

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/md-log/md-log-mcp'

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