Skip to main content
Glama

Upscale a photo

soclo_image_upscale
Destructive

Increase the resolution of one reviewed photo. Quote first with soclo_image_upscale_quote. SPENDS the quoted credits only after the owner approves the price. Pass expectedCredits, pricingVersion and ownerApprovedPrice:true from the approved quote, including zero only when the account quote permits it. Use the selected private photo locators from soclo_photo_reference_prepare or soclo_brand_photo_reference in their original order. Image-edit permission is one tap once per account; people in photos are allowed. The result is saved to the owner’s Soclo Library and returned as libraryAssetId and resultUrl. Save a UUID clientRequestId before calling. A pending result reattaches with the identical inputs and same request ID; an exact replay returns the original picture without a second charge. After a lost result or unknown charge, use soclo_image_recover with the original clientRequestId; never start a replacement purchase. This tool does not publish.

Input Schema

NameRequiredDescriptionDefault
imageUrlsYesSelected reviewed private photo locators in their original order.
pricingVersionYesFrom the authenticated native quote for this picture or enhancement; frames uses its own quote.
clientRequestIdYesRequired before generate: one stable UUID per picture purchase. Required before frames; recover and frames_result read the original UUID without a new render. Never retry an unknown outcome automatically or mint a replacement ID to bypass a duplicate refusal.
expectedCreditsYesRequired: use the exact authenticated native quote, including zero only when quoted for the owner-exempt account. Frames uses its own existing quote.
ownerApprovedPriceYesRequired true for generate only after the account owner has seen the tier price and approved this single picture purchase. A retry spend needs a new yes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations (destructiveHint=true, idempotentHint=false) cover only the safety profile; the description adds substantial operational context: credits are actually spent, a one-tap image-edit permission per account is required, people in photos are permitted, results land in the Library and return libraryAssetId/resultUrl, and replay/re-attach semantics are described. The clientRequestId dedup rule usefully refines the coarse idempotentHint=false 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and the quote-first rule, then progresses through prerequisites, permission, result, and recovery. Ten sentences is long, but nearly every sentence carries procedural weight for a paid, non-idempotent operation; a couple of clauses (e.g., 'people in photos are allowed', 'does not publish') could be trimmed.

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?

Despite no output schema, the description names the returned fields (libraryAssetId, resultUrl), covers the wallet-spend implication, the approval gate, the idempotency/replay contract, and the failure-recovery handoff. For a 5-required-param payment tool this is essentially complete.

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 description coverage is 100%, so the schema already documents all five parameters. The description ties them to the workflow ('pass expectedCredits, pricingVersion and ownerApprovedPrice:true from the approved quote', 'save a UUID clientRequestId before calling'), which is helpful but largely restates what the schema specifies. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource ('Increase the resolution of one reviewed photo') and immediately differentiates itself from soclo_image_upscale_quote, soclo_image_recover, and the reference-prep tools. An agent can tell what this does and where it sits in the pipeline without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit sequencing (quote first, spend only after owner approval), the approval precondition ('ownerApprovedPrice:true from the approved quote'), and a clear when-not/alternative path ('after a lost result or unknown charge, use soclo_image_recover; never start a replacement purchase'). Nothing about routing is left to inference.

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