Skip to main content
Glama

Upload a picture or font file

canvas_upload

For a picture that is a file on your side, such as a photo your user attached in the chat: an address to send its bytes to, good for 10 minutes, so you never type the file out as a data: URL. Send it with a shell: curl -sS --data-binary @photo.jpg "". The reply is {img, w, h}: then canvas_edit {reference: {img}} lays it under the painting to paint against (canvas_look sample reads its colors), or {k: "image", img} places it. PNG, JPEG, WebP or GIF, at most 1.5 MB and 12 megapixels: make a larger photo smaller first. Only pictures your user gave you or that you may use. The same address takes a font file (.ttf or .otf, at most 1.5 MB, one weight and style a file; Studio Plus), such as the site's own fonts from its repo: curl -sS --data-binary @fonts/Display.ttf "". The reply is {font, family, weight, style}, font being its id: use it as a kit font (canvas_edit {kit: {fonts: {display: ""}}}) or a text's font, and save it into a brand (canvas_brand save, fonts {display: ""}, canvas: this one) so every design on the brand draws in it. Only fonts whose licence lets your user use them.

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": "canvas_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
canvasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, closed-world write. The description adds substantial behavior beyond that: the URL expires in 10 minutes, accepted formats and the 1.5 MB / 12 megapixel caps, the exact return payloads ({img, w, h} and {font, family, weight, style}), and the licensing restriction. It does not say what happens when a file is rejected or the URL is reused after expiry, which is the main remaining gap.

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 opening sentence is well front-loaded with the primary case, but the body is roughly 250 words and a large share is downstream workflow (canvas_edit reference/kit, canvas_look sample, canvas_brand save) that belongs to those tools. Inline shell examples are useful; the repeated framing across the picture and font halves is not.

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?

With no output schema, the description correctly carries the burden of describing both reply shapes, plus size, format, expiry and licensing limits — enough to invoke it safely. The one material omission is the undocumented `canvas` parameter, which leaves the caller guessing on the sole input.

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 coverage is 0% and the single `canvas` parameter is never mentioned in the description, so an agent has no idea what it selects or whether to pass it. The description compensates richly on return values and constraints, but that is output semantics, not parameter semantics, leaving the one input undocumented in both places.

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?

The description makes clear this tool hands back an upload address for picture bytes or a font file, and it distinguishes the two payload types explicitly. It never names the tool itself or states a verb like "call canvas_upload to get a URL", so the action is inferred from the flow rather than asserted, which keeps it short of a 5.

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?

It states the triggering condition precisely: a picture that is a file on the agent's side, e.g. a photo the user attached, and the alternative it avoids (typing the file out as a data: URL). The font case is likewise scoped to .ttf/.otf the user is licensed to use. It stops short of naming a sibling tool to prefer in other cases, so there is no explicit exclusion set.

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.