Skip to main content
Glama

Send Christmas Postcard

Upload a photo

upload_photo

Use only when the user wants their own photo on the front. Accepts a public HTTPS URL or base64 bytes (JPEG, PNG, WebP, HEIC, max 15 MB) and an explicit mode. Returns an uploadId for prepare_postcard, pixel size, a preview URL and quality warnings.

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": {
      "mode": "<mode>",
      "source": "<source>"
    },
    "name": "upload_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"test" = free sandbox (never printed, Stripe test card 4242 4242 4242 4242). "live" = real card, printed and mailed. Always explicit.
sourceYes
idempotencyKeyNoReuse this key only to retry the same request.

Output Schema

NameRequiredDescriptionDefault
widthYes
heightYes
uploadIdYes
warningsYes
expiresAtYes
previewUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the write/external/non-idempotent/non-destructive profile, so the description's job is to add context, which it does: accepted formats, a 15 MB ceiling, and the returned uploadId, pixel size, preview URL and quality warnings. It does not mention that live mode incurs real printing/charges beyond what the mode enum says, nor any rate or auth constraints.

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?

Two sentences, front-loaded with the usage constraint, then a compact list of inputs and outputs. No filler or redundant restatement of the tool name.

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 an output schema present, return values need not be explained, yet the description still summarizes them helpfully. Formats, size cap, mode requirement and the next-step handoff are all covered; only failure behavior and the cost implications of live mode are left implicit.

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 67% and the schema already documents mode semantics, URL format, base64 size limits and idempotencyKey reuse. The description largely restates those (formats, 15 MB, 'explicit mode') rather than adding new meaning, though tying uploadId to prepare_postcard is a useful addition.

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?

States a specific verb and resource (upload a photo) plus the exact scope: 'the user wants their own photo on the front.' It also names the downstream consumer (prepare_postcard), which separates it from design-based siblings like list_designs without ambiguity.

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 opening 'Use only when...' is an explicit when-to-use and an implicit when-not (i.e., when the user is fine with an existing design). It also routes the agent forward by saying the result feeds prepare_postcard. It stops short of naming the alternative tool for the non-custom-photo case.

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.