Skip to main content
Glama

Download a restored photo

pinin_download_restoration
Read-only

Get a signed download URL for a finished photo restoration, valid about one hour; choose the restored or original file and check expires_at before the link lapses.

Instructions

Get the signed URL for a finished photograph, valid about an hour, with expires_at so you know when it lapses. image: "restored" (default) is the repaired file; "original" is the file that was sent in. Call it only once a job is completed — a pending, processing or failed job has nothing to download, and re-reading a completed job already returns the same URLs. Read-only and free: it re-signs the link, not the credits, and does not touch the job.

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": {
      "id": "<id>"
    },
    "name": "pinin_download_restoration"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRestoration id of a completed job — the `id` field from pinin_restore_photo or pinin_list_restorations.
imageNoWhich file to link. `restored` (default) is the repaired photograph; `original` is the submitted file.

Output Schema

NameRequiredDescriptionDefault
urlNoSigned https URL for the image; expires within the hour.
objectNoAlways `download`.
expires_atNoISO 8601 instant when the signature lapses.
http_statusNoThe upstream redirect status, normally 302.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish the read-only, non-destructive profile, so the bar is lower, yet the description still adds real behavior: the URL lifetime ("valid about an hour"), the `expires_at` signal, and the fact that it consumes no credits and mutates nothing. The only missing piece is whether URLs can be re-signed repeatedly or have any rate limit, which is minor against what is disclosed.

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?

Front-loaded with the outcome (signed URL), then validity, then the enum meaning, then the precondition, then the cost/safety note. Every clause carries information an agent would otherwise have to guess, and there is no filler.

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 two-parameter read tool with full schema coverage, annotations, and an output schema (so return values need no prose), the description covers purpose, gating condition, variant selection, link lifetime, and side-effect profile. Nothing an agent needs in order to call it correctly 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?

Schema coverage is 100%, so both `id` and the `image` enum are already documented in structured form; the description largely restates them ("`image: "restored"` (default) is the repaired file; `"original"` is the file that was sent in"). Baseline 3 applies — it reinforces but does not add syntax or format meaning beyond the schema.

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 — "Get the signed URL for a finished photograph" — and immediately clarifies the distinction from merely re-reading a job ("re-reading a completed job already returns the same URLs", "re-signs the link, not the credits"). An agent can tell what this returns and how it differs from pinin_get_restoration without opening 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 Guidelines5/5

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

Gives an explicit precondition ("Call it only once a job is `completed`") plus the negative cases that gate it ("a pending, processing or failed job has nothing to download"). It also names the alternative path — re-reading a completed job yields the same URLs — so the agent knows when this call is redundant.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.