Skip to main content
Glama
hanoak

pexels-mcp-server

by hanoak

Get Pexels Photo

pexels_get_photo
Read-only

Fetch a Pexels photo by numeric ID, returning full metadata, pre-sized image URLs, and a courtesy credit.

Instructions

Get a single Pexels photo by its numeric ID, with full detail, pre-sized URLs, and a courtesy credit. 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
idYesThe numeric Pexels photo ID.
Behavior4/5

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

Annotations already provide readOnlyHint and openWorldHint, but the description adds value by disclosing the response structure (src field with named pre-sized URLs) and offering guidance on choosing the closest fit. This goes beyond the annotations and gives actionable behavioral context.

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, with two short sentences that front-load the purpose and then provide practical guidance on URL selection. No wasted words or redundant fluff.

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?

For a simple single-parameter read-only tool, the description adequately covers return content, usage tip, and safety (via annotations). Although no output schema exists, the description highlights key response aspects like src sizes and courtesy credit, making it complete for the task.

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?

The input schema fully documents the single id parameter with type, bounds, and a clear description, so coverage is 100%. The description only restates 'numeric ID' and does not add new parameter semantics. The baseline of 3 applies due to complete schema coverage.

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 retrieves a single Pexels photo by its numeric ID, with specific return details (pre-sized URLs, courtesy credit). It is distinct from sibling search/curated/list tools, which focus on multiple results or collections.

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 implies use when you already have a specific photo ID and need full details. It does not explicitly mention alternatives or when-not-to-use, but the singular 'get by ID' scope makes the context clear. Without explicit exclusions, it falls short of a 5.

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