Skip to main content
Glama

List restorations

pinin_list_restorations
Read-only

Lists an account's photo restorations newest first with pagination, status/mode filters, and updated_since for reconciliation. Use it to poll changed jobs instead of tracking IDs.

Instructions

List the account's restorations, newest first, one page at a time, with has_more and the next_cursor / next_cursor_id pair for the following page. Filter by status or mode, or pass updated_since to collect every job that changed since the instant your poller last ran — that is the reconciliation sweep, and it replaces tracking ids. Use this instead of pinin_get_restoration when following more than one job; use pinin_get_restoration for the full document of a single id. Read-only and free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pinin_list_restorations"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoReturn only jobs queued with this restoration mode. Omit for every mode.
limitNoPage size, 1–100. Default 20.
statusNoReturn only jobs in this state. Omit for every job regardless of state.
updated_sinceNoISO 8601 instant; only jobs whose state changed at or after it. The sweep a poller runs instead of remembering ids.
created_beforeNoISO 8601 cursor: `next_cursor` from the previous page. Pages newest-first, so this walks backwards in time.
created_before_idNoTiebreaker cursor: `next_cursor_id` from the previous page. Send it with `created_before` or the page boundary can repeat a job.

Output Schema

NameRequiredDescriptionDefault
dataNoRestoration documents, same shape as pinin_get_restoration; empty when nothing matches.
objectNoAlways `list`.
has_moreNoTrue when another page exists — request it with `created_before` and `created_before_id`.
next_cursorNoCursor for the next page, or null on the last page.
next_cursor_idNoTiebreaker for the next page, or null on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the safety profile, and the description adds real behavior: newest-first ordering, page-at-a-time pagination with has_more, the cursor-pair requirement, and that the call is free. "Read-only" restates readOnlyHint=true, so it is not entirely additive, but the pagination and cost details are.

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 core operation, then filtering, then sibling routing — a logical order. The em-dash aside about the poller sweep is slightly wordy but carries decision-relevant information rather than 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?

With an output schema present, return values need not be spelled out, yet the description still flags has_more and the cursor pair for paging. For a six-parameter, fully-optional listing tool, nothing an agent needs to call it correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description earns extra by mapping the API's next_cursor / next_cursor_id pair onto the schema's created_before / created_before_id parameters and explaining that the sweep "replaces tracking ids." That added meaning is not derivable from the schema alone.

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 ("List the account's restorations") plus ordering ("newest first") and shape ("one page at a time"). It explicitly contrasts with the sibling pinin_get_restoration, so an agent can route 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 explicit when-to-use branches: filter by status/mode, or use updated_since for a poller's reconciliation sweep. It also names the alternative and the condition selecting it — "use this instead of pinin_get_restoration when following more than one job".

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