Skip to main content
Glama
@pixelvault-dev/local-mcp

@pixelvault-dev/local-mcp

Update image metadata

update_image_metadata

Replace an image's stored custom metadata JSON used for filtering image lists; submit the full replacement object or null to clear it.

Instructions

Replace one image's custom metadata (a JSON object you can later filter list_images by). The object replaces the stored one, so send every key to keep; null clears it (PATCH /v1/images/:id).

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": {
      "id": "<id>",
      "metadata": "<metadata>"
    },
    "name": "update_image_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesImage id, e.g. img_abc123.
metadataYesThe full metadata object to store (max 50 top-level keys / 4 KB). It REPLACES the existing metadata (not merged), so include every key you want to keep. Pass null to clear it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4/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 disclose the critical destructive trait: the object replaces rather than merges, so omitted keys are lost, and null clears it entirely. It also reveals the underlying PATCH /v1/images/:id endpoint, though it says nothing about permissions, behavior when the id is unknown, or whether the new metadata is immediately filterable.

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?

Two sentences, front-loaded with the action and the highest-risk semantic (full replacement), with the endpoint tucked into a trailing parenthetical. Nothing is wasted.

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 two-parameter mutation with no output schema and no annotations, the description covers the essential risk profile and the purpose of the stored object. It stops short of stating what the call returns or what happens on a bad id, which would round it out.

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 100% and the schema already documents both the id and the full-replacement semantics of metadata, including the 50-key/4KB limit. The description reinforces replace-not-merge and adds the list_images filtering rationale, but adds no syntax or format detail beyond the schema, so baseline 3 applies.

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

Purpose5/5

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

The description opens with a specific verb and resource ('Replace one image's custom metadata') and immediately scopes it as a JSON object used for filtering. An agent can distinguish this from get_image or list_images without opening the schema.

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 gives useful context for why you would call it (so you can later filter list_images by the metadata) and states the null-clears case. However, it never says when not to use it or names an alternative for partial/merge-style updates, leaving the agent to infer that no merge path exists.

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