Skip to main content
Glama

Upscale a photo

upscale
Destructive

Upscales one of the user's photos to 1K, 2K or 4K, paid from their credits. It also sharpens a soft or blurry photo (out of focus, or small from a chat app) as it enlarges it. A photo is offered only the sizes larger than it and at most 4× its size; its prices from get_shoot or list_photos name them. Pass the price the user agreed to as max_credits. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.

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>",
      "size": "<size>",
      "max_credits": "<max_credits>"
    },
    "name": "upscale"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYes
againNotrue only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.
photo_idYes
max_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / again
      Added value: +{
      +  "description": "true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the call spends the user's credits (which explains the destructiveHint), the size and magnification limits, and the fact that a repeated identical call within 10 minutes returns the prior result without charging. It also warns that a call which returned no answer may already have started, which is actionable failure-recovery context an agent would otherwise lack.

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?

Front-loads the action and cost in the first clause, then layers constraints, pricing source, and retry recovery. Every sentence carries information, though the final retry sentence is dense and would read better as a standalone caution.

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?

For a four-parameter, credit-spending mutation with no output schema, the description covers cost, limits, prerequisite lookups, and failure recovery, and hints at the return ('answers with what it made'). It leaves the photo_id target and any response shape detail implicit, a minor gap given the schema's naming.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 25% schema description coverage, the description carries real weight: it defines what max_credits means (the price the user agreed to, sourced from get_shoot or list_photos) and constrains size to options larger than the source and no more than 4×. It does not clarify photo_id beyond its name, so one required parameter remains thin 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?

States a specific verb and resource ('Upscales one of the user's photos') plus the exact output sizes and the fact that it costs credits. It also names the secondary effect (sharpening a soft or small photo), so an agent can distinguish it from a plain edit. It stops short of naming a sibling it is not, such as zoom_in or restore, so sibling differentiation is implied rather than explicit.

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?

Gives concrete use conditions (enlarging a soft, out-of-focus, or small image), hard constraints (only sizes larger than the source and at most 4×), the prerequisite that prices come from get_shoot or list_photos, and an explicit retry procedure via list_photos. What is missing is any when-not-to-use guidance or a named alternative for a related need like zoom_in or edit.

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