Skip to main content
Glama

Upscale a photo

upscale_photo
DestructiveIdempotent

Use this to make one of the user's photos sharper and twice as large, for print, a big screen, or a sharper video start. Costs 2 credits; say the cost before calling. Each photo can be upscaled once; the original stays. Takes 10 to 30 seconds and returns the upscaled image's link.

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": {
      "photo_id": "<photo_id>"
    },
    "name": "upscale_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
photo_idYesA photo_id from get_generation or list_media.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
summaryYes
photo_idNo
view_urlNo
error_codeNoPresent only on a refusal.
credits_leftNo
upscaled_urlNo
credits_chargedNo
already_upscaledNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the 2-credit cost with an instruction to state it before calling, the 10-30 second duration, and that the original is preserved while each photo can only be upscaled once. These quota and irreversibility facts explain the destructiveHint=true flag rather than contradicting it.

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?

Four tight sentences, front-loaded with the effect and use cases, then cost, then constraints and timing. Every sentence carries actionable information with no padding.

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 one-parameter mutation tool, the description covers cost, consent requirement, one-time-only limit, preservation of the original, latency, and the return value; the presence of an output schema means return details need no elaboration. Nothing an agent needs before calling is absent.

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?

The single photo_id parameter is fully documented in the schema (100% coverage), including where to obtain it via get_generation or list_media. The description adds no further meaning about the parameter, so the baseline of 3 applies.

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 (upscale) and resource (one of the user's photos) plus the concrete effect: sharper and twice as large. The stated use cases (print, big screen, sharper video start) make it distinguishable from a generic edit_photo action without needing to open either schema.

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?

Opening 'Use this to...' together with the enumerated use cases gives clear positive guidance on when this tool applies. What's missing is any explicit exclusion or named alternative (e.g. for mild retouching versus enlargement), so the agent must infer the boundary with siblings like edit_photo.

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