Skip to main content
Glama

JustMarkdown

Convert file contents (base64) to Markdown

convert_base64

Convert base64-encoded file contents to Markdown. filename drives format detection and is required. For programmatic clients that already hold the file bytes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>",
      "content_base64": "<content_base64>"
    },
    "name": "convert_base64"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOriginal file name, used for format detection.
content_base64YesBase64-encoded file contents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the required-parameter dependency and that filename drives format detection, but never states that the operation is side-effect-free, what happens for an unrecognized extension, or any size/encoding limits on the base64 payload.

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?

Three short sentences, front-loaded with the core transformation, with no filler. The middle sentence is mildly redundant with the schema's property description, which keeps it from a perfect score.

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

Completeness3/5

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

For a simple two-parameter conversion tool with no output schema, the definition covers the essential mechanics but leaves the agent guessing about the return shape (inline Markdown vs. a file reference) and failure modes for unsupported formats. Adequate, but not complete.

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 coverage is 100%, and the description's note that '`filename` drives format detection and is required' largely restates the schema's own property description. With the schema doing the heavy lifting, the baseline of 3 applies; no additional syntax or format-list detail is added.

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 and resource ('Convert base64-encoded file contents to Markdown') and names the output format, so the transformation is unambiguous. The clause 'For programmatic clients that already hold the file bytes' implicitly separates it from upload- and URL-based siblings, though no sibling is named explicitly.

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 phrase 'For programmatic clients that already hold the file bytes' gives a clear selection condition that distinguishes this from convert_upload and convert_url. It stops short of explicit when-not guidance or naming the alternatives outright, so it lands just below the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources