Skip to main content
Glama
ianderso
by ianderso

get_media

Read-only

Read a media object's path, MIME type, checksum, description, and date to inspect citations, verify duplicates, and audit family tree sources.

Instructions

Read one media object: path, mime type, checksum, description, date.

referenced_by_count above one is usually correct — one image cited from every fact it proves. Several media objects sharing a checksum is the duplicate that find_duplicates(kind='media_checksum') hunts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mediaYesHandle or gramps_id of the media object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description goes beyond that by disclosing return-field semantics (referenced_by_count >1 is normal, shared checksums indicate duplicates), which is valuable given there is no output schema.

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?

Front-loaded with the core purpose, then two compact notes on interpreting results. The em-dash asides and backticked field references are slightly informal but each sentence earns its place.

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 read-only, one-parameter tool with no output schema, the description helpfully enumerates the returned fields and explains how to interpret the reference count and checksum. This compensates well for the missing output schema, leaving only the get_object vs get_media distinction unaddressed.

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% and the single 'media' parameter is fully documented as 'Handle or gramps_id of the media object.' The description adds no syntax or format detail beyond what the schema already provides, so the baseline 3 applies.

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?

States a specific verb and resource ('Read one media object') and enumerates the fields it returns (path, mime type, checksum, description, date). It is clearly distinct from the get_person/get_event/get_source siblings, though it does not explicitly contrast with the generic get_object, which could also fetch 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?

It routes the agent toward find_duplicates(kind='media_checksum') for duplicate hunting and explains how to read referenced_by_count, which is useful context. However, it never states plainly when to choose this tool over alternatives like get_object, so usage guidance remains implied rather than explicit.

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