Skip to main content
Glama

Resolve a place photo

goplaces_photo
Read-onlyIdempotent

Convert Google Places photo resource names into media URLs, with optional dimensions and image download, using names from place details.

Instructions

Resolve a Google Places photo resource name into a photo media URL. Use with photo names returned by goplaces_details(include_photos=true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPhoto resource name like 'places/PLACE_ID/photos/PHOTO_ID'.
max_width_pxNoMaximum photo width in pixels. Required when max_height_px is omitted.
include_imageNoAlso download the photo and return it as an image the model can look at. Leave off when a URL is all the user needs.
max_height_pxNoMaximum photo height in pixels. Required when max_width_px is omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
errorNoPresent only on failure; the result is also flagged isError.
photo_uriNoExpiring Google-hosted photo URL.
image_mime_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is already covered. The description adds that the tool converts a resource name into a URL, which is useful behavioral context, but it does not discuss authentication requirements, rate limits, or the fact that resolving returns a temporary URL. With annotations carrying most of the burden, a 3 is appropriate.

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?

Two sentences with zero waste, front-loading the action and immediately following with the usage context. Every word earns its place.

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?

With a full schema and output schema present, the description need not explain return values. It provides the key upstream dependency and the basic operation. Minor gaps include no mention of URL expiration or permissions, but for a focused resolver tool with rich structured fields, this is largely complete.

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%, so all four parameters are documented in the schema. The description does not add parameter-level details beyond what the schema provides. A baseline 3 is correct when the schema does the heavy lifting.

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?

States a specific verb (resolve) and resource (a Google Places photo resource name into a photo media URL). This distinguishes it from siblings like goplaces_details, which returns place data, though it explicitly names goplaces_details as the source of photo names. It does not differentiate from all siblings, but the operation is clear.

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?

Explicitly names the context in which this tool is used: 'Use with photo names returned by goplaces_details(include_photos=true).' That tells an agent both the upstream dependency and the prerequisite flag, which is strong guidance. It does not state when not to use it or offer alternatives, but the context is clear enough.

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