Skip to main content
Glama
hardcover-mcp

hardcover-mcp

Update User Book

hardcover_update_user_book
DestructiveIdempotent

Update a book in your personal library by changing its reading status, rating (0–5, including halves), or review text.

Instructions

Update a book in your library. Change status, rating (0-5, supports halves like 3.5), or review text. Use hardcover_get_user_books to find the user_book_id first. [API cost: up to 1 top-level GraphQL fields before retries] Check hardcover_get_rate_limit before multi-page work; every retry costs again. Honor RateLimit/RateLimit-Policy/Retry-After and cooldowns. Use bounded pages; do not fan out detail lookups. Never automatically replay a write. On timeout/connection loss/5xx, reconcile remote state before any authorized retry. Hints are not approval gates.

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": {
      "user_book_id": "<user_book_id>"
    },
    "name": "hardcover_update_user_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
ratingNoRating from 0-5 (supports halves like 3.5, 0 to clear)
reviewNoReview text
status_idNoNew status: 1=Want to Read, 2=Reading, 3=Read, 4=Paused, 5=DNF, 6=Ignored
user_book_idYesThe user book ID (from hardcover_get_user_books)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.8/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 write/irreversibility profile is largely pre-supplied. The description adds real value on failure semantics — never auto-replay a write, reconcile remote state on timeout/5xx before retrying — but the rest is generic rate-limit boilerplate that could apply to any tool.

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

Conciseness3/5

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

The core sentence is well front-loaded, but the bracketed API-cost note followed by five sentences of rate-limit and retry policy dominate the text. Instructions like "Use bounded pages" and "do not fan out detail lookups" read as generic boilerplate that is not obviously relevant to a single-record update.

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 small four-parameter mutation with no output schema and full schema coverage, the definition covers what changes, how to obtain the required ID, and how to behave on failure. What is missing is minor: whether status/rating changes are reversible and whether unspecified fields are left untouched.

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%, with rating range, status enum values, and user_book_id sourcing all documented in the schema itself. The description's mention of halves like 3.5 and field list duplicates what the schema already states, so it adds minimal meaning beyond structured data.

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?

States a specific verb and resource ("Update a book in your library") and immediately enumerates the mutable fields (status, rating, review), so the agent knows exactly what the call can change. It also names the sibling tool hardcover_get_user_books, distinguishing this write path from the read path.

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 concrete prerequisite guidance: obtain user_book_id via hardcover_get_user_books first, and check hardcover_get_rate_limit before multi-page work. It does not explicitly contrast with hardcover_add_user_book or hardcover_remove_user_book, so the when-not-to-use case is left implicit.

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