Skip to main content
Glama

search_media

Find photos, videos, audio, or text in your memory that match a query in any language, ranked best first and showing the moments that matched.

Instructions

Photos and videos matching q (any language), best first, each with the moments that matched. kind is image or video (locally also audio or text).

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": {
      "q": "<q>"
    },
    "name": "search_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
kindNo
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior beyond the schema: results are relevance-ranked, each carries matched moments, queries work in any language, and `kind` is limited by platform. It omits the read-only nature, default/limit behavior for large result sets, and any pagination or cost signal.

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?

Two compact sentences with no filler, and the core result semantics are front-loaded. The phrase "the moments that matched" is slightly opaque without more context, but nothing is redundant.

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?

An output schema exists, so return shape needn't be spelled out, and the description covers ranking and matching semantics. However, for a 3-parameter search tool it leaves `limit` behavior and result-set sizing unexplained, which an agent needs to call it well.

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 0%, so the description must compensate. It does clarify `q` (matches in any language) and gives the actual value domain for `kind` (image/video, locally also audio/text) that the untyped string schema lacks. `limit` is entirely undocumented, leaving one of three parameters without meaning.

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 names the resource precisely ("photos and videos"), the matching input (`q`), the ordering ("best first"), and the payload shape ("each with the moments that matched"). This clearly separates it from memory/document siblings, though it never explicitly contrasts itself with `ask_media`, `list_media`, or `get_media`.

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 only implied: an agent can infer you call it to retrieve media by query, and the note about local audio/text hints at a broader modality domain. There is no explicit when-to-use versus `ask_media` (question answering) or `list_media` (enumeration), and no statement about when not to use it.

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