Skip to main content
Glama

Open a photo or document

get_file
Read-only

Returns a photo (small by default) or a trip document such as an e-ticket or booking PDF. Give photo_id or document_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoFor photos: thumb (default) or original.
photo_idNoA photo id.
document_idNoA document id, from a trip's documents.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe photo or document id.
kindYesphoto or document.
mime_typeYesThe file's type, e.g. image/jpeg or application/pdf.
size_bytesYesThe file's size in bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds the 'small by default' sizing behavior, but the schema's size field already documents 'thumb (default)', so this adds little beyond structured data.

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?

Two short sentences, front-loaded with what is returned, followed by the identifier hint. Slight redundancy with the schema, but no wasted prose.

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

Completeness4/5

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

For a simple read-only fetch with a full output schema and complete parameter documentation, the description covers the essentials. It could add routing guidance versus search_photos, but nothing critical is missing.

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 description coverage is 100% and all three parameters are documented in the schema, so the baseline is 3. The description's mention of photo_id/document_id and the default size merely restates what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Returns') and the two resource types (photo, trip document) with concrete examples (e-ticket, booking PDF). It is clear what the tool does, but it never distinguishes itself from the sibling search_photos, leaving the agent to infer when to open vs. search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'Give photo_id or document_id' tells the agent what to supply but not when to reach for this tool over search_photos, nor any prerequisites. No when-not conditions or alternatives are stated.

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.