Skip to main content
Glama
Pexels MCP Server

Pexels MCP Server

by ttkkasd

search_photos

Search Pexels for free stock photos using a query string, with filters for orientation, size, and dominant color to find the right image for any project.

Instructions

Search for photos on Pexels using a query string

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default 1)
sizeNoMinimum photo size
colorNoFilter by dominant color
queryYesSearch term for photos
per_pageNoNumber of results per page (max 80, default 15)
orientationNoFilter by photo orientation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure and does very little: it does not say whether the call is read-only (safely inferred but unstated), how results are paginated, what the default page size is, or what the response contains. It conveys only the source service and the search semantics.

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?

A single front-loaded sentence with no wasted words. It is arguably too terse for a 6-parameter search tool, but there is no filler or redundancy.

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

Completeness3/5

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

The input schema is fully self-documenting and there is no output schema, so the agent can construct a call correctly. However, nothing is said about result ordering, pagination limits, or total-result behavior, leaving gaps an agent would need to discover by calling.

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%, with units, defaults, and enum values documented for page, per_page, size, color, and orientation, so the baseline is 3. The description adds nothing beyond 'query string', which the schema already explains.

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 states a specific verb (search) and resource (photos) plus a source (Pexels), and the required query string makes the operation unambiguous. It does not explicitly differentiate from siblings like get_curated_photos or get_photo_details, though the verb 'search' alone does most of that work.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus get_curated_photos (browsing) or get_photo_details (fetching a single photo), and no mention of prerequisites such as an API key or rate limits. Usage is only implied by the required query parameter.

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

Deploy Server

Other Tools