Skip to main content
Glama
Unsplash MCP Server
by mjordi

Get Random Photos

unsplash_get_random
Read-only

Fetch random Unsplash photos for inspiration, placeholders, or diverse content, optionally filtered by search query or orientation.

Instructions

Get one or more random photos from Unsplash, optionally filtered by search query or orientation.

This tool is perfect for getting inspiration, placeholder images, or diverse photo content. You can narrow the selection with search terms.

Args:

  • query (string, optional): Search terms to filter random selection

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

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

  • count (number): Number of random photos (1-30, default: 1)

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

Returns: For JSON format: Array of photo objects For Markdown: Formatted list of photos with details

Examples:

  • Single random photo: (no parameters)

  • Random nature photos: query="nature", count=5

  • Random portraits: orientation="portrait", count=3

Note: Each request returns different random photos.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unsplash_get_random"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of random photos to return (max 30)
queryNoOptional search query to narrow random selection
orientationNoFilter by photo orientation
content_filterNoContent safety filter levellow
response_formatNoOutput format: markdown (default) or jsonmarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, and non-destructive traits, so the description's main added value is the closing note that "Each request returns different random photos," which explains the idempotentHint=false behavior. It also describes return shapes for both formats, compensating for the missing output schema, but says nothing about rate limits or auth.

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 purpose sentence followed by Args/Returns/Examples is easy to scan. There is minor redundancy, e.g. "You can narrow the selection with search terms" repeats the query param description, but overall it is tightly sized for a five-parameter tool.

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 shoulders the burden of explaining return values for both JSON and markdown. Combined with annotations covering the safety profile and a fully documented schema, an agent has enough to call it correctly; only failure modes and pagination limits are unaddressed.

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 five parameters are already documented with types, enums, and defaults. The Args section largely restates the schema (query, orientation, content_filter, count, response_format) with equivalent wording; only the Examples add marginal meaning through realistic combinations.

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 and resource ("Get one or more random photos from Unsplash") plus the filtering dimensions. The word "random" is the key differentiator from sibling lookup/search tools, though no sibling is named explicitly.

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?

"Perfect for getting inspiration, placeholder images, or diverse photo content" gives clear situational context, and the Examples section anchors concrete invocations. It stops short of stating when to prefer unsplash_search_photos or unsplash_get_photo instead, so no explicit exclusions.

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