Skip to main content
Glama
Unsplash MCP Server
by mjordi

Search Unsplash Photos

unsplash_search_photos
Read-onlyIdempotent

Search free-to-use photos by keyword and filter by orientation, color, safety level, and sort order to find relevant or recent images.

Instructions

Search for photos on Unsplash by keywords with advanced filtering options.

This tool searches through millions of high-quality, free-to-use photos from the Unsplash platform. You can filter by orientation, color, content safety level, and sort by relevance or recency.

Args:

  • query (string): Search keywords (e.g., "mountain sunset", "coffee cup", "architecture")

  • page (number): Page number for pagination (default: 1)

  • per_page (number): Results per page, 1-30 (default: 10)

  • orientation (string, optional): Filter by 'landscape', 'portrait', or 'squarish'

  • content_filter (string): Safety level 'low' (default) or 'high'

  • color (string, optional): Filter by color name (e.g., 'black', 'white', 'yellow', 'red')

  • order_by (string): Sort by 'relevant' (default) or 'latest'

  • response_format (string): Output as 'markdown' (default) or 'json'

Returns: For JSON format: Complete search results with metadata { "total": number, // Total matching photos "total_pages": number, // Total pages available "page": number, // Current page "per_page": number, // Results per page "results": [ // Array of photo objects { "id": string, "width": number, "height": number, "color": string, "likes": number, "description": string, "alt_description": string, "urls": { "raw": string, "full": string, "regular": string, "small": string, "thumb": string }, "links": { "html": string, // Unsplash page URL "download": string }, "user": { "name": string, "username": string } } ] }

Examples:

  • Search for nature photos: query="forest waterfall"

  • Find portrait photos: query="portrait", orientation="portrait"

  • Latest tech photos: query="technology", order_by="latest"

Note: All photos from Unsplash are free to use. Attribution to the photographer is appreciated but not required.

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": "unsplash_search_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (starts at 1)
colorNoFilter by color (e.g., 'black', 'white', 'yellow', 'red', 'purple', etc.)
queryYesSearch terms to find photos
order_byNoSort order: relevant (default) or latestrelevant
per_pageNoNumber of results per page (max 30)
orientationNoFilter by photo orientation: landscape, portrait, or squarish
content_filterNoContent safety filter level: low (default) or highlow
response_formatNoOutput format: markdown (default) or jsonmarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond that: pagination semantics via page/per_page, the content-safety filter, and the licensing/attribution note that all photos are free to use. It stops short of disclosing rate limits or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is well front-loaded and the Returns block earns its place because no output schema exists. However, the Args section fully duplicates parameters already documented at 100% coverage in the schema, and the multi-line JSON return skeleton is verbose, so the description carries avoidable bulk.

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 no output schema, the description correctly supplies the return structure and pagination metadata, and it covers all parameters plus licensing context. What remains missing is minor for a read-only search tool: no error or empty-result behavior and no rate-limit note.

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 the schema already documents all eight parameters including enums and defaults. The Args section restates those same fields with a few illustrative values (e.g. 'mountain sunset', color names), adding only marginal meaning beyond the schema — the baseline 3 applies.

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 and resource ('Search for photos on Unsplash by keywords') and names the filtering capability. It is clear enough to separate from unsplash_search_collections and unsplash_search_users by resource type, but it never explicitly contrasts with unsplash_list_photos or unsplash_get_random, leaving the boundary between keyword search and browsing to inference.

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 context is conveyed only through three illustrative examples (nature, portrait orientation, latest tech), which imply when the tool fits but never state when to prefer a sibling like list_photos or get_random. There are no exclusions or prerequisite conditions, so the agent must infer the selection logic.

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