Skip to main content
Glama

Aadharsh Site

Photo Query

photo_query
Read-onlyIdempotent

Search the photo archive. q is free text scored per term across caption, EXIF and an offline term expansion, so "classic chrome bridge" matches film and subject; camera, lens, film, recipe and from/to are exact filters. Results carry score, matched (fields that answered) and a recipe card of in-camera settings. ranking.mode is all-terms, partial or no-match; ranking.dropped and ranking.common name ignored terms. GPS and unlisted EXIF are never returned.

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

Input Schema

NameRequiredDescriptionDefault
qNofree-text query, ranked; multiple words are scored independently
toNoinclusive YYYY-MM-DD prefix
filmNofilm simulation name, e.g. "Classic Chrome", "Nostalgic Neg", "Acros"
fromNoinclusive YYYY-MM-DD prefix
lensNoCase-insensitive substring of the lens.
limitNoPage size. Values outside the range are clamped, and a non-number falls back to the default.
cameraNoCase-insensitive substring of the camera.
offsetNoRows to skip.
recipeNosubstring match anywhere in the recipe card, e.g. "DR400", "Clarity: -2", "Grain Effect: Strong, Large", "+2 Red"

Output Schema

NameRequiredDescriptionDefault
limitNo
queryNoThe normalized filters, empty strings when absent.
totalYes
offsetNo
photosYes
rankingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already establish that this is a safe, idempotent, non-destructive read, and the description adds substantial context beyond them. It discloses ranking modes, dropped and common terms, result fields such as score and matched, recipe-card behavior, and a privacy exclusion for GPS and unlisted EXIF.

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?

The description is dense but front-loaded, beginning with the core action and then covering query semantics, filters, ranking and privacy. Every sentence carries relevant information, though the single-paragraph format is less scannable than it could be for nine parameters.

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 nine-parameter search tool with an output schema, the description covers what an agent needs: matching behavior, exact-filter behavior, ranking outcomes, important result fields and privacy exclusions. Remaining details such as pagination limits are adequately handled by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the schema documents each parameter. The description still adds meaningful semantics by explaining that q is scored per term across caption, EXIF and offline term expansion, and that camera, lens, film, recipe and date bounds act as exact filters.

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 the photo archive." It also clearly separates ranked free-text matching from exact filters, which tells an agent what this tool is for, though it does not explicitly differentiate itself from similarly named siblings such as photos or photo_recipe.

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 is implied by explaining that q is ranked free text while camera, lens, film, recipe and from/to are exact filters. However, it does not state when to choose this tool over alternatives or when not to use it, so the guidance remains implicit rather than explicit.

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.