Skip to main content
Glama

get_export_preview

Preview PDF export contents by listing each asset's id, type, filename, date, place, people, and video duration for an album or selected assets. See export options before generating.

Instructions

List what export_pdf would include (id, type, filename, date, place, people, video duration) so you know which assets exist before looking at images and writing captions. Pass exactly one of album_id / asset_ids. Read-only.

The result also carries `options`: every choice export_pdf accepts, with its
default. When the user asked for a PDF without saying how they want it, show
them these choices and ask (layout, cover pages, which video moments, captions)
before exporting; when they did give specs, or just want "a PDF, defaults are
fine", export directly.

Args:
    album_id: Album UUID, or
    asset_ids: Explicit asset UUIDs (search results, a selection).
    limit: Max assets (1-500, default 100).

Returns: JSON {title, count, assets:[...], warnings:[...]} or {"error": ...}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
album_idNo
asset_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It explicitly says 'Read-only', describes the returned options with defaults, and gives the return shape including error format. This is strong behavioral disclosure for a read-only preview tool. It could add what happens if both album_id and asset_ids are supplied, but the 'Pass exactly one' instruction covers the main contract.

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?

The description is organized into clear sections: purpose, usage guidance, args, and return format. Each sentence adds value; the options-explanation is directly actionable and the parameter list is compact. Length is appropriate for the tool's complexity without redundancy.

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?

The tool has an output schema, but the description still covers the practical decision flow, parameter semantics, return values, and error case. It even explains how to use the returned options to decide between preview-guided asking and direct export. Nothing an agent needs to invoke it correctly 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 0%, and the description fully compensates by explaining each parameter: album_id as Album UUID, asset_ids as explicit asset UUIDs, and limit as max assets with range and default. It also adds the critical exclusivity rule that the schema alone does not convey. Every parameter is given meaningful context beyond its title.

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?

The description names a specific verb ('List'), a specific resource ('what export_pdf would include'), and the included fields (id, type, filename, date, place, people, video duration). It clearly positions this as a preview tool and distinguishes it from its sibling export_pdf. The read-only note and the exclusivity requirement further sharpen the purpose.

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?

The description gives explicit when-to-use guidance: call it before looking at images and writing captions to know which assets exist. It also explains what to do with the returned options: when the user gave no PDF preferences, show the choices and ask; when they gave specs or want defaults, export directly. This effectively routes the agent between this tool and export_pdf.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drolosoft/immich-photo-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server