Skip to main content
Glama
hanoak

pexels-mcp-server

by hanoak

Search Pexels Photos

pexels_search_photos
Read-only

Search Pexels for photos by keyword, then narrow results with orientation, size, color, or locale filters. Returns compact photo objects with pre-sized URLs and attribution credit.

Instructions

Search Pexels for photos matching a query, with optional orientation/size/color/locale filters. Returns compact photo objects with pre-sized URLs and a courtesy credit (attribution is appreciated but not required by the Pexels license). Read-only. Each photo includes several pre-sized URLs in src (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using original.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number, 1-based.
sizeNoMinimum photo size: large (24MP), medium (12MP), or small (4MP).
colorNoDesired photo color: a named color (red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white) or a hex code like "#ffffff".
queryYesThe search query, e.g. "ocean", "tigers", "pears".
localeNoThe locale of the search, e.g. "en-US", "fr-FR" (28 supported locales).
per_pageNoItems per page (clamped to a max of 80).
orientationNoDesired photo orientation.
Behavior4/5

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

Annotations include readOnlyHint=true, and the description reinforces 'Read-only'. It adds valuable behavior beyond annotations: returns pre-sized URLs with specific size options, mentions courtesy credit/license terms, and advises picking the closest fit rather than always using 'original'. This enriches the agent's understanding of response behavior.

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 concise and front-loaded: first sentence states the core purpose, second explains return format and licensing, third gives specific usage guidance on URL selection. Every sentence earns its place, with no fluff or repetition.

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?

Given no output schema, the description sufficiently explains return values (compact photo objects with pre-sized URLs and credit). It covers key usage guidance and licensing. It does not mention pagination metadata or total result counts, but the schema describes page/per_page, so the agent can infer. This is nearly complete for a search tool.

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%, so the baseline is 3. The description mentions the optional filters (orientation/size/color/locale) but does not add semantic detail beyond the schema's own parameter descriptions. It does not clarify parameter usage beyond grouping them as filters.

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 clearly states the tool's purpose: 'Search Pexels for photos matching a query' with specific verb and resource. It distinguishes from siblings by emphasizing query-based search vs. curated photos or single photo retrieval, and lists optional filters.

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?

The description establishes clear context: use this tool to search photos by query with optional filters. It does not explicitly mention alternatives or when-not-to-use, but the context is sufficiently clear for an agent to select it for search tasks.

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

Install Server

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/hanoak/pexels-mcp-server'

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