Skip to main content
Glama

get_library_metadata_by_id_nearest

Read-onlyIdempotent

Retrieve metadata for media items nearest to a given library item, with options to limit results and exclude parent or grandparent items.

Instructions

Get Nearest Metadata.

GET /library/metadata/{id}/nearest

Args: id: The unique identifier of the item exclude_parent_id: The unique identifier of the excludeparent exclude_grandparent_id: The unique identifier of the excludegrandparent limit: Maximum number of items to return max_distance: The maxDistance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
limitNo
max_distanceNo
exclude_parent_idNo
exclude_grandparent_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, but the description adds no behavioral context beyond a bare endpoint. It does not explain what 'nearest' means, how distances are computed, or the nature of the returned metadata.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely short, but it wastes space on redundant content: the title and HTTP path are immediately derivable from the tool name. The parameter list is minimal and not structured to convey any richer semantics, making it under-specified rather than appropriately concise.

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

Completeness2/5

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

Given five parameters and a large sibling group, the description provides almost no context. It fails to explain the core 'nearest' concept, leaves several parameters semantically ambiguous, and offers no reason to choose this tool over similar metadata operations. The output schema helps with return values, but the input and purpose remain unclear.

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

Parameters2/5

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

With schema description coverage at 0%, the description is the only source of parameter meaning. It clearly explains 'id' and 'limit', but 'max_distance' is defined as 'The maxDistance'—a circular tautology—and 'exclude_parent_id'/'exclude_grandparent_id' are only vaguely described as identifiers of an 'excludeparent'/'excludegrandparent'. An agent cannot confidently set these parameters.

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

Purpose2/5

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

The description says 'Get Nearest Metadata,' which is essentially a restatement of the tool name and does not clarify what 'nearest' semantically means. It neither specifies the resource scope nor differentiates it from sibling tools like get_library_metadata_by_id_children or get_library_metadata_by_id_reviews.

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 this tool versus alternatives. It does not mention use cases, prerequisites, or relationships to the many sibling get_library_metadata_by_id_* operations.

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

Deploy Server

Other Tools