Skip to main content
Glama

Update a book

update_book
DestructiveIdempotent

Change a book's details (title, author, subtitle, summary, genre, subgenre, audience, planner year), hide it from the shelf, or file it under an agency client. Free. Send only what changes; null clears an optional field. Only the book's creator can change its details, as in the app; any editor can file it. Later covers use the new details; existing covers do not change.

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>"
    },
    "name": "update_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
genreNoGenre slug or name, e.g. "fantasy".
titleNo
authorNo
book_idYesThe bookId (from list_books).
summaryNo
subgenreNo
subtitleNo
client_idNoFile under this client (from list_clients); null moves it to Unassigned.
visibilityNohidden takes the book off the shelf (nothing is deleted); default shows it.
planner_yearNo
target_audienceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: cost ("Free"), the creator-vs-editor authorization split, partial-update semantics with null-clearing, and the non-obvious side effect that "Later covers use the new details; existing covers do not change." These are material behaviors an agent could not infer from readOnlyHint/destructiveHint/idempotentHint alone, and none of it conflicts with the declared write-and-destructive profile.

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?

Three dense sentences, front-loaded with the operation and its fields, followed by the update contract and then the permission and side-effect caveats. Every clause carries information; nothing is restated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation with no output schema, the definition covers the pieces that actually determine correct invocation: partial-update contract, null semantics, authorization boundary, cost, and downstream effect on already-generated covers. Nothing essential to calling it correctly is missing.

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?

With only 36% schema description coverage across 11 parameters, the description carries real weight and delivers: it enumerates the editable fields in mostly schema order, explains that omitted fields are untouched and null clears, and signals the two enum/ID-driven paths (visibility hiding, client filing). It does not spell out values or formats (genre slug, audience enum, planner_year format), so schema and description still must be read together.

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?

Names a specific verb and resource plus the full set of editable dimensions (title, author, subtitle, summary, genre, subgenre, audience, planner year) and the two non-editorial operations (hide from shelf, file under client). An agent can tell exactly what this tool mutates without reading the schema, and no sibling in the catalog performs book updates.

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?

Gives a clear partial-update rule ("Send only what changes; null clears an optional field") and a permission precondition ("Only the book's creator can change its details... any editor can file it"), which tells the agent when the call will succeed. It stops short of naming alternatives for editing other artifacts in the catalog, so it is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources