Skip to main content
Glama

update_metadata

DestructiveIdempotent

Change specific metadata fields on a single book, such as title, authors, tags, or series, while preserving untouched fields. Merge or replace list values and get before/after values for verification.

Instructions

Change metadata fields on one book. Only the fields in changes are touched.

changes: any of title, subtitle, publisher, publishedDate (YYYY-MM-DD), description, seriesName, seriesNumber, seriesTotal, isbn13, isbn10, pageCount, language, narrator, authors, categories (= genres), moods, tags (lists of strings). merge_lists: True adds list values to what is there; False replaces the list. Locked fields are refused. Nothing can be cleared with this tool. Returns the before/after values of the changed fields.

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": {
      "book_id": "<book_id>",
      "changes": "<changes>"
    },
    "name": "update_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
book_idYes
changesYes
merge_listsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds genuinely non-structured behavior: only keys present in `changes` are touched, locked fields are refused, values cannot be cleared, and before/after values are returned. It doesn't state permission or auth requirements, so it's strong but not exhaustive.

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?

The core constraint is front-loaded in the first two sentences, and the field enumeration is dense but justified given the empty schema descriptions. The inline "changes:" / "merge_lists:" block reads like parameter documentation spliced into prose, which is slightly awkward structurally but not wasteful.

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 three-parameter mutation tool with an output schema already covering return values, the description supplies the partial-update contract, list-merge semantics, and locked-field behavior. The main remaining gap is that a caller who needs to remove or clear a value is told it's impossible but not pointed anywhere useful.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the load, and it does: it enumerates every accepted metadata field, gives the publishedDate format (YYYY-MM-DD), clarifies that authors/categories/moods/tags are string lists, and defines merge_lists True vs. False precisely. This is meaning the schema alone cannot supply.

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?

"Change metadata fields on one book" gives a specific verb, resource, and scope, and the phrase "one book" quietly separates it from the sibling bulk_edit_metadata. The second sentence clarifies that the operation is partial rather than a wholesale replace.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It clearly frames the context: single-book edits, additive vs. replacing list behavior, and refusal of locked fields, which tells the agent when this tool is appropriate. It does not explicitly name bulk_edit_metadata as the alternative for multi-book edits, so it stops short of full when/when-not routing.

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