Skip to main content
Glama

List photos and videos

list_media
Read-only

Use this when the user refers to photos or videos they made before ("the beach photo from last week", "my latest videos"), or to pick a photo to work with. Returns finished photos and videos, newest first, with their IDs, the prompt they were made from, links and dates. Narrow it with influencer_id, type, favorites_only, or search (words from the prompt, for example "beach" or "red dress"). Up to limit items per call; pass next_cursor back as cursor for older ones. Prompts in a list are shortened (prompt_truncated); to reuse or show a prompt, call again with ids set to those items' IDs, which returns them with their whole prompts. Photos and videos still being made aren't listed: use get_generation for 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": "list_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoPhoto or video IDs from an earlier list: returns just those, with their whole prompts. The other filters are ignored.
typeNoall
limitNo
cursorNonext_cursor from the previous call.
searchNoWords that appear in the prompt.
influencer_idNoOnly this influencer's media (an influencer_id from list_influencers).
favorites_onlyNo

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
itemsNo
summaryYes
error_codeNoPresent only on a refusal.
next_cursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint=false, but the description adds real behavioral context: newest-first ordering, per-call cap with next_cursor paging, a default prompt truncation ('prompt_truncated') and the exact remedy, and the rule that ids causes the other filters to be ignored. These are non-obvious behaviors an agent could otherwise get wrong.

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 trigger case, then returns, then filters, then paging, then the truncation caveat — a logical order with no filler. It is on the dense side, packing three distinct behaviors (ordering, pagination, prompt truncation/re-fetch) into a single paragraph that could be split for scannability.

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 7-param read tool with an output schema present, the description covers everything else needed: what is returned, ordering, paging, filtering, and the truncation workaround. Nothing an agent needs in order to call it correctly or interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 57%, yet the description compensates: search is defined as 'words from the prompt' with examples, ids is explained as returning whole prompts while overriding other filters, cursor is tied to next_cursor, and limit is described as items per call. The remaining params (type, favorites_only, influencer_id) are each given a stated purpose in the 'narrow it' sentence.

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 ('Returns finished photos and videos... with their IDs, the prompt they were made from, links and dates') and anchors it to user intent with concrete example phrasings ('the beach photo from last week'). It also distinguishes itself from the two obvious neighbors: get_generation for in-progress items and list_influencers as the source of influencer_id.

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 when-to-use trigger ('user refers to photos or videos they made before... or to pick a photo to work with') plus an explicit exclusion with the correct alternative: 'Photos and videos still being made aren't listed: use get_generation for those.' It also documents a re-entry pattern (call again with ids) rather than leaving the agent to guess.

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