Skip to main content
Glama
ianderso
by ianderso

update_media

DestructiveIdempotent

Update a media object's description, date, or path in your Gramps family tree. This clarifies documents stored under checksum names.

Instructions

Edit a media object's description, date, or path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate of the document/photo.
pathNoStored path/filename.
mediaYesMedia handle or gramps_id.
descriptionNoWhat this document IS ('1900 US census, Cedar Flat, Brannock Co., Ohio, ED 12 sheet 4A'). Files are stored under checksum names, so without this the media list says nothing about the document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the mutation/safety profile is covered. The description adds nothing about partial-update semantics (what happens to unspecified fields), permissions, or reversibility, so it only marginally extends beyond the structured data.

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

Conciseness5/5

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

A single front-loaded sentence with zero filler; every word earns its place.

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 destructive, idempotent mutation with no output schema, the description omits partial-update behavior and any mention of the required media handle as the target selector. Annotations carry the safety profile, but an agent still lacks full behavioral context.

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%, so all four parameters are documented in the schema, including a detailed explanation of the 'description' field's purpose. The description merely paraphrases three of the four fields and omits the required 'media' handle, adding no semantics beyond the schema. 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 (Edit) and resource (media object) plus the three editable fields, which cleanly distinguishes it from add_media, get_media, and attach_media. It lacks explicit sibling differentiation against update_object_fields, but the purpose is unambiguous.

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?

No guidance on when to use this versus update_object_fields or the generic update path, and no stated prerequisites (e.g., needing an existing media handle). The agent must infer context entirely.

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