Skip to main content
Glama

Upload email image

lnkdrp_upload_email_asset

Uploads one image for HTML email templates (a GIF, PNG, JPEG or WebP file) and stores it at a public address. An image up to 10 MB is kept exactly as uploaded, on every plan; over 5 MB the answer carries sizeNote (it may load slowly on phones). A bigger file is made smaller automatically, because big images make emails slow to open and more likely to be clipped or land in spam (at most 600px wide, then fewer colours and frames, or lower quality; a GIF stays animated), and the answer carries original { size, width, height } and resizedNote. A sourceUrl or an upload link's page takes a file up to 25 MB; dataBase64 up to 5 MB. One email shows at most 10 images, 20 MB in all; a template saved over that has its images made smaller until it fits. A PDF or other document is not an email image: unsupported_content_type with details.document true. lnkdrp_share_pdf uploads a PDF and makes its share link; lnkdrp_create_share_link makes a link to a document already in LinkDrop. A template carries a document as one of its links (links: [{ docId }]), placed in the body as {{link.}}. lnkdrp_whoami reports this workspace's limits (capabilities.emailImages). Every image refusal says the limit, why and what to do, with details.limits { perImageBytes, perEmailBytes, imagesPerEmail, workspaceImages }. An image attached in a chat fits neither source (it has no public address, and its base64 is far too long to copy faithfully): lnkdrp_create_email_asset_upload_link makes a one-time page where the person adds it from their browser. An HTML template shows only images uploaded to this workspace; any other source is refused when the template is saved (details.code image_not_an_asset). The source is exactly one of sourceUrl (an https address LinkDrop fetches itself) or dataBase64 (the file's bytes, a data: URL prefix allowed; up to 3 MB when this server talks to a hosted LinkDrop). The type is read from the file's bytes, not its name: SVG and other types are unsupported_content_type, a larger file, or one that cannot be made small enough, too_large, and a workspace keeps up to 200 images (validation with details.code assets_limit) and uploads up to 60 an hour and 300 a day, deleted ones included (rate_limited). A sourceUrl LinkDrop cannot fetch, or that answers an error, is validation with details.code source_unavailable. Returns the image's assetId, name, url, contentType, size, width, height and imgTag: a ready element with the address, alt text from name, width and a style that keeps it inside a narrow mail client, for a template body. Each call stores a new image, even of the same file.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lnkdrp_upload_email_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA name for the image (1-120 characters); its alt text in imgTag.
sourceUrlNoAn https address of the image, up to 25 MB; LinkDrop fetches it.
dataBase64NoThe image file's bytes as base64 (up to 5 MB, 3 MB to a hosted LinkDrop); a data:image/...;base64, prefix is accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dataBase64 / description
      Previous value: -"The image file's bytes as base64; a data:image/...;base64, prefix is accepted."New value: +"The image file's bytes as base64 (up to 5 MB, 3 MB to a hosted LinkDrop); a data:image/...;base64, prefix is accepted."
    • changedInput schema / properties / sourceUrl / description
      Previous value: -"An https address of the image; LinkDrop fetches it."New value: +"An https address of the image, up to 25 MB; LinkDrop fetches it."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations (readOnlyHint=false, idempotentHint=false, openWorldHint=true, destructiveHint=false) are fully consistent with the text, and the description adds substantial context beyond them: automatic resizing below 600px with fewer colours/frames, the 10 MB kept-as-is threshold, the sizeNote/resizedNote/original response extras, workspace quotas (200 images, 60/hour, 300/day), per-email caps, and the exact error codes (unsupported_content_type, too_large, rate_limited, source_unavailable, assets_limit). The line 'Each call stores a new image, even of the same file' independently justifies idempotentHint=false.

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?

Purpose and the main limits are front-loaded, but it is a single dense paragraph of roughly 400 words with real duplication: dataBase64's 5 MB (and 3 MB hosted) cap appears in both the first and last thirds, and the 25 MB sourceUrl limit is restated from the schema. Splitting size/resize rules, error codes and the imgTag return into short grouped sentences would cut length without losing information.

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

Completeness5/5

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

For a single-object upload with no output schema, it covers the full agent-relevant surface: accepted formats, size tiers and downscaling outcomes, quota and rate limits, error identifiers with details payloads, sibling alternatives, and an explicit enumeration of return fields including imgTag. Nothing an agent needs in order to call this correctly or interpret the result is missing.

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 already 100%, but the description adds meaning the schema cannot express: the source is exactly one of sourceUrl or dataBase64 (mutual exclusivity is not enforced by the schema, which has zero required properties), the fetch is performed by LinkDrop itself, and the type is sniffed from bytes rather than the filename. It also explains how name flows into imgTag alt text, tying parameters to output.

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?

Opens with a specific verb and resource: 'Uploads one image for HTML email templates (a GIF, PNG, JPEG or WebP file) and stores it at a public address.' It also carves out sibling territory by name (lnkdrp_share_pdf, lnkdrp_create_share_link, lnkdrp_create_email_asset_upload_link), so an agent can separate this from the other upload/link tools without reading schemas.

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

Usage Guidelines5/5

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

Explicit routing is given for every nearby alternative: PDFs go to lnkdrp_share_pdf, existing LinkDrop documents to lnkdrp_create_share_link, and an image pasted in chat to lnkdrp_create_email_asset_upload_link because it has no public address and too much base64 to copy. It also states the per-plan limits context source (lnkdrp_whoami, capabilities.emailImages), so when-to-use and when-not-to-use are both covered.

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