Skip to main content
Glama

Download all images from chats

get_chat_images

Download full-resolution generated images from one or many ChatGPT chats in a single call, including late finishers and manually created chats; retry only unfetched chats.

Instructions

Download every generated image (full resolution) from one or MANY ChatGPT chats in a single call — late finishers after a timeout, or chats made by hand in the ChatGPT UI. Pass all chat ids at once in chat_ids (don't call this in parallel). Chats not reached before the call's time limit come back as not_fetched — call again with just those.

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": "get_chat_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idNoSingle chat (same as chat_ids with one entry).
chat_idsNochat_ids or chatgpt.com/c/<id> URLs
output_dirNo
return_imagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses full-resolution retrieval, a partial-failure model (time-limit stragglers returned as 'not_fetched'), and a concurrency warning against parallel calls. It does not disclose where files land on disk, whether auth is required, or what the response shape looks like, which keeps it below a 5.

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?

Three tight sentences, front-loaded with the core action, followed by the batching rule and the retry protocol. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with no annotations and no output schema, the description should false-close the loop on where images are written and what the return payload contains. It covers the tricky failure mode well but leaves the output destination and the return_images toggle entirely unexplained.

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 50% — chat_id and chat_ids are documented there, and the description usefully reinforces batching semantics for chat_ids. But output_dir and return_images receive no explanation in either the schema or the description, so the destination of the download and the meaning of the default-true return_images remain ambiguous.

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?

Specific verb plus resource plus scope: 'Download every generated image (full resolution) from one or MANY ChatGPT chats in a single call'. The verb 'download' cleanly separates it from the sibling generate_images/edit_images, which mutate or create rather than retrieve.

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?

Strong operational guidance: pass all ids in one call, do not parallelize, and re-call with only the chats returned as 'not_fetched' after the time limit. It also notes the useful case of late finishers and manually created UI chats. It stops short of naming an alternative tool or stating when not to use it.

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