Skip to main content
Glama

Get the photo as a file

get_photo_file_by_photo_id
Read-onlyIdempotent

Returns one photograph from an earlier Pexafy result as an image file, identified by its photo_id. A result's link points to the image; this tool returns the image itself, so the person does not need to send the photograph again.

Use it when the user wants a photograph found here as a file: to place it in a document, a slide or a post, to attach, send or download it, or to have it cropped, captioned or otherwise edited with the host's own tools.

It is for a photograph the person picked: where the Pexafy grid is shown, the photographs of a search are already on screen and need no file to be seen.

The answer contains the photograph, at most 1280 pixels wide, and a line giving its file name, size, licence, source, photo_id, page at the source and the credit line to display. One photo per call; the file stays in the conversation afterwards.

This server does not edit images: what can be done to the file next depends on the host's own tools. Its licence and credit line apply to this photograph only.

Input Schema

NameRequiredDescriptionDefault
photo_idYesThe `photo_id` of the specific photo to retrieve from a previous Pexafy result. It is a UUID such as `019e1ecb-0039-7da6-b1ca-987ee4d337c0`. Use the photo's `photo_id`, never a rank or a position: a rank is how the person and you name a photograph out loud, never what this parameter takes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/non-open-world, yet the description adds substantial context beyond them: max 1280px width, the returned metadata line (file name, size, licence, source, page, credit line), one photo per call, file persistence in conversation, and that this server does not edit images. This is exactly the added behavioral value the dimension rewards.

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 action and outcome, and most sentences carry distinct information (output contents, resolution, persistence, licensing scope). It is somewhat long at five paragraphs for a one-parameter tool, with mild redundancy around not needing to resend the photograph.

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 no output schema, the description fully compensates by enumerating the returned image and its accompanying metadata line, per-call cardinality, and licence/credit applicability. An agent has everything needed to call it and interpret the result.

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% and the schema itself already explains the UUID format and the critical rule to use photo_id rather than a rank. The description only restates that the photo is identified by its photo_id, adding little beyond the structured field, so the baseline 3 applies.

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 one photograph from an earlier Pexafy result as an image file, identified by photo_id. It explicitly distinguishes itself from the retrieval-by-link flow and from search siblings (search_photos, get_grid_selected_photos) by noting the link points to the image while this tool returns the image itself.

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 cases (place in a document, slide or post; attach, send, download; crop, caption or edit) and an explicit when-not boundary (a photograph already visible on the grid needs no file). The alternative behavior is named rather than left to inference.

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.