Skip to main content
Glama

Put a photo on a link

set_photo
DestructiveIdempotent

Makes an Unsplash photo the wallpaper of a link the person made, from the photo's address. For Unsplash photos only. It replaces the wallpaper the link had, loads from Unsplash and is never stored by LFG. An address that is not an Unsplash photo returns an error.

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": {
      "id": "<id>",
      "photo_url": "<photo_url>"
    },
    "name": "set_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe link's id.
pickNoThe photo's pick address from the search, so Unsplash is told it was chosen.
creditNoThe photographer's name.
photo_urlYesThe photo's address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The alarm's id."New value: +"The link's id."
    • removedInput schema / properties / id / format
      Removed value: -"uuid"
    • changedInput schema / properties / id / pattern
      Previous value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"New value: +"^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description still adds real context beyond them: the existing wallpaper is replaced, the image is loaded from Unsplash rather than stored by LFG, and invalid addresses error out. It does not describe what an agent sees on success.

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?

Four short sentences with the core action front-loaded and no filler. The Unsplash-only limitation is stated twice ('For Unsplash photos only' and the error sentence), a minor redundancy, though the second occurrence adds the failure mode.

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?

For a 4-parameter mutation with no output schema, the description covers the key facts an agent needs: required inputs, replacement of existing state, external dependency, non-persistence, and error behavior. Only the attribution parameters and the success response are unaddressed, and the schema covers the former.

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 baseline applies. The description only glosses the link id and photo_url; the 'pick' and 'credit' parameters, which are non-obvious Unsplash attribution fields, get no added explanation.

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?

States a specific verb and resource ('Makes an Unsplash photo the wallpaper of a link') plus the required input ('from the photo's address'). The 'For Unsplash photos only' constraint separates it from sibling media setters like set_gif and set_media without needing to open their schemas.

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?

Gives a clear inclusion rule ('For Unsplash photos only') and an exclusion with consequence ('An address that is not an Unsplash photo returns an error'). It stops short of naming what to use instead for non-Unsplash images, so the routing guidance is clear but not fully closed.

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.