Skip to main content
Glama

set_comment

Update an image's title, description, and location in embedded XMP and gThumb sidecar data, changing only the fields you provide.

Instructions

Set an image's title, description (comment) and/or location: written as embedded XMP (exiftool) and to the comment sidecar the gThumb UI reads (sidecar caption/note/place). Only non-None fields are changed.

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": {
      "path": "<path>"
    },
    "name": "set_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
titleNo
locationNo
descriptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the dual write target (embedded XMP via exiftool plus the gThumb comment sidecar with caption/note/place) and the non-destructive partial-update rule. It does not state what happens on failure, whether existing XMP fields are overwritten wholesale, or whether exiftool must be installed, which keeps it short of a 5.

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?

Three compact sentences, front-loaded with the action and the affected fields; the parenthetical tool/UI names are dense but earn their place by explaining the dual storage. Slightly cluttered by stacked parentheses, but no filler.

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 values need no explanation, and the write targets plus partial-update semantics are covered. But this is a mutation tool with zero annotation coverage and zero schema parameter descriptions, and the description never addresses overwrite risk, permissions, or error conditions — the remaining gaps are the ones an agent would most want.

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 0% and none of the four parameters has a description, so the description must compensate. It does so by mapping each parameter to its storage semantics — description is stored as the 'comment'/caption, location as 'place', title as XMP title — and by explaining the null-default behavior. 'path' is only implied by 'an image', not described.

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 gives a specific verb ('Set') and enumerates the exact resources affected (title, description/comment, location) on an image, which differentiates it from siblings like set_rating and set_tags by field set. No sibling is named explicitly, so an agent must infer the routing, but the purpose itself 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'and/or' phrasing plus 'Only non-None fields are changed' implies partial-update usage, so an agent can infer that omitted fields are untouched. However, there is no explicit when-to-use vs. when-not-to-use guidance and no mention of alternatives such as set_tags or set_rating for other metadata.

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