Skip to main content
Glama

lychee_search

Read-only

Searches and initializes photo search operations in a self-hosted Lychee gallery via the API, letting MCP clients query albums and images with parameters such as album_id, page, and q.

Instructions

lychee_search covers the search toolset (2 operations). Calls go to LYCHEE_URL under /api/v2. The Authorization header is the raw token. action help with target returns one action's parameters. Actions: init, search.

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": {
      "action": "<action>"
    },
    "name": "lychee_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON object or JSON array. Passwords are redacted in output.
queryNoQuery parameters, such as album_id, page, and q.
actionYesLychee operation to call, or help.
paramsNoPath parameters, such as photo_id.
targetNoWith action help, the action whose parameters to describe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds genuinely non-structured context: the base URL LYCHEE_URL, the /api/v2 path, and that the Authorization header must carry the raw token. It stops short of describing what each operation does or what a call returns, which keeps it below a 5.

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, front-loaded with scope and endpoint before the action list, with no filler. The auth-header sentence and the help/target sentence each earn their place, though the action enumeration reads slightly like a schema restatement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, nested-object wrapper with no output schema, the definition covers transport and auth but leaves the actual behavior of init and search unexplained, including what body/query/params are expected per action. An agent would need to call help first to use it correctly, which is a real completeness gap.

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 action, params, query, body, and target are already documented in the schema, including the enum values. The description's only added semantic is the help/target pairing, which is useful but marginal. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies this as the search toolset and enumerates its two operations (init, search), which distinguishes it from siblings like lychee_photos and lychee_albums. However, it never says what 'init' actually does or what the tool returns, so the purpose is only partially clear beyond the generic 'search' label.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use lychee_search versus lychee_photos, lychee_tags, or the other siblings, nor any stated preconditions beyond the auth header. The only usage hint is the mechanical note that 'action help with target returns one action's parameters', which is a discovery mechanism, not selection guidance.

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