Skip to main content
Glama

Search Pexels stock

search_stock_media
Read-onlyIdempotent

Searches the Pexels stock library (photos or videos) with the user's connected API key. Returns items with id, dimensions, duration (videos), author, thumbnail url, available video qualities, and a downloaded flag telling whether the asset is already in the project's media pool. If no key is connected it errors with PERMISSION_REQUIRED, whose message says where the user connects one (Library → Generators → Stock Library). Results are subject to the Pexels license; keep the author attribution when asked about provenance. Results match the uploader's keywords, not the picture — a search for 'earth from space' also returns the Moon and artists' renders; thumbnail shows the actual subject. See read_skill {topic:'verify'}.

Input Schema

NameRequiredDescriptionDefault
kindYesphotos | videos
pageNo1-based page, 40 items per page.
sizeNoOptional: large | medium | small
colorNoOptional, photos only: a Pexels color name.
queryNoSearch phrase; empty = curated/popular feed.
tokenYesThe session token `connect` returned. Pass it on every call — it says which browser to drive.
projectIdYesProject id from get_projects.
orientationNoOptional: landscape | portrait | square

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it names the PERMISSION_REQUIRED failure mode and where the user fixes it, discloses the Pexels license and attribution duty, and warns that results follow uploader keywords rather than image content. That is exactly the kind of non-obvious operational detail annotations cannot convey.

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 purpose and return payload, then the operational caveats. Most sentences earn their place, though the read_skill cross-reference is cryptically phrased and slightly interrupts the flow.

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 takes on the burden of describing the return shape and does so completely: id, dimensions, duration, author, thumbnail URL, available qualities, and the downloaded flag. Combined with error behavior and the keyword-matching caveat, an agent has everything needed to call and interpret it.

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 all eight parameters are already documented in the input schema and the baseline of 3 applies. The description adds context about the output shape (dimensions, duration, thumbnail) but nothing new about parameter syntax or enum behavior for kind, size, color, or orientation.

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 first clause gives a specific verb and resource (search the Pexels stock library for photos or videos) and states the credential dependency. It is clear in isolation, but it never names its nearest siblings (search_media, download_stock_media), so an agent cannot distinguish them from the description alone.

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 implied rather than stated: the 'downloaded' flag hints that this feeds a download step, and read_skill {topic:'verify'} points to a follow-up, but there is no explicit when-to-use/when-not or comparison against search_media. The empty-query case is documented only in the schema, not the description.

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.

Resources