Skip to main content
Glama

Upscale a paid image

upscale_image
Destructive

Enlarge an owned product view or the sheet of a paid render. Quote upscale_credits with get_credits. Existing enlargements may be reused; query get_upscale to track the result, or list_upscales to recover its id. Do not repeat an uncertain request automatically.

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": {
      "kind": "<kind>",
      "max_credits": "<max_credits>"
    },
    "name": "upscale_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
viewNo
render_idNo
max_creditsYesMaximum credits explicitly authorized for this action
view_set_idNo

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
viewYes
linksYes
widthYes
heightYes
statusYes
creditsYes
hasImageYes
renderIdYes
createdAtYes
viewSetIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the bar is lower, but the description still adds value: it discloses that the call consumes credits (with an explicit quote step first) and that "existing enlargements may be reused", which tempers the destructive picture. The warning against blindly repeating an uncertain request is exactly the operational hazard implied by idempotentHint=false and would otherwise be invisible. It does not state what happens to prior upscales of the same source, so it stops at 4.

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?

Four short sentences, front-loaded with what is enlarged, then cost, then tracking/reuse, then the retry caveat. Every sentence carries distinct information with no restatement of the title. The phrase "Quote upscale_credits" is slightly opaque in isolation and would read better as "quote the credits for an upscale", but the overall density and ordering are good.

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 costly, non-idempotent, destructive mutation with an output schema (so return values need no explanation), the description covers the three things an agent most needs: that credits are spent, how to check cost first, and how to find or track a prior result. The missing piece is disambiguating the two input paths against `kind` and `view_set_id`, which matters at call time. Nothing in it is contradicted by the annotations.

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 only 20% (just `max_credits` is documented), so the description carries real weight and partially delivers: "owned product view" and "sheet of a paid render" infer the product-view path (`view`/`view_set_id`) versus the `render_id` path. However, `view_set_id` is never mentioned, the `kind` enum values are not tied to the two modes, and no format or ownership requirements are given for the id fields. It adds partial meaning over an under-described schema, but leaves half the parameters to guesswork.

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?

"Enlarge an owned product view or the sheet of a paid render" gives a specific verb plus the two source resources, and the pairing maps onto the sibling inventory (build_from_product_views / create_product_views vs create_render / start_render_sheet). An agent can tell this is the enlargement step rather than a creation or redraw step. It stops short of 5 only because the vocabulary drifts ("enlarge" vs the tool's own "upscale") and the two modes are not explicitly tied to the `kind` enum.

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 routes the agent to named siblings for concrete sub-tasks: get_credits to quote cost beforehand, get_upscale to poll, list_upscales to recover a lost id. "Do not repeat an uncertain request automatically" is an explicit when-not rule that addresses the retry case directly. It does not state when a caller should prefer a cheaper alternative such as redraw_render_sheet or polish_product_view over an upscale, which is the main remaining gap.

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