Skip to main content
Glama

Add a book

add_book
Idempotent

Adds a book to the signed-in user's Linko library by catalog identity. It searches the catalog by title, optionally narrowed by author or ISBN, and creates a Book resource only when exactly one catalog match is found. It never saves a discovered web page URL as the book. When several or no books match, it returns candidates or a clarification request and creates nothing; a call with a candidate's title and book_id adds that book.

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": {
      "title": "<title>"
    },
    "name": "add_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
isbnNoISBN-10 or ISBN-13, with or without hyphens; it narrows the search to that edition.
titleYesThe book's title, at most 300 characters; the catalog is searched for it.
authorNoAuthor name, narrowing the catalog search.
book_idNoCatalog book_id of one candidate from an earlier add_book result; it adds that exact book.
completedNotrue marks a book newly added to the library as finished (read); it changes nothing for a book already there. Default false.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / properties / async_labeling
      Removed value: -{
      -  "default": true,
      -  "title": "Async Labeling",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / author / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / author / description
      Added value: +"Author name, narrowing the catalog search."
    • changedInput schema / properties / book_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1024,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / book_id / description
      Added value: +"Catalog book_id of one candidate from an earlier add_book result; it adds that exact book."
    • addedInput schema / properties / completed / description
      Added value: +"true marks a book newly added to the library as finished (read); it changes nothing for a book already there. Default false."
    • changedInput schema / properties / isbn / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 40,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / isbn / description
      Added value: +"ISBN-10 or ISBN-13, with or without hyphens; it narrows the search to that edition."
    • addedInput schema / properties / title / description
      Added value: +"The book's title, at most 300 characters; the catalog is searched for it."
    • addedInput schema / properties / title / maxLength
      Added value: +300
    • addedInput schema / properties / title / minLength
      Added value: +1
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic write/open-world/idempotent profile; the description goes further by describing the actual match-count rule that governs writes, the candidate/clarification return path when no write occurs, and the fact that pre-existing library entries are untouched by the completed flag. That is exactly the behavioral detail an agent needs before committing a mutation.

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?

Front-loads the core action and scope in the first sentence, then spends each subsequent sentence on a distinct decision-relevant fact (match rule, URL exclusion, multi/no-match path, commit path). No filler or restatement of the tool name.

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?

With an output schema present the description need not document return shapes, yet it still explains the two possible non-success outcomes (candidates, clarification request). Combined with the schema's parameter docs and the annotation safety profile, an agent can call this correctly on both the first and the follow-up turn.

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%, so every parameter is already documented, and the description mostly restates that title/author/ISBN drive the search. It adds one genuinely new piece of meaning — that title plus a candidate's book_id is the commit path for a multi-match result — but nothing about normalization, matching strictness, or how ISBN interacts with a conflicting title.

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 ('Adds a book to the signed-in user's Linko library') and adds a scope qualifier ('by catalog identity') that separates it from link-saving tools like add_resource. The sentence 'It never saves a discovered web page URL as the book' explicitly carves out the boundary an agent would otherwise get wrong.

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 unusually explicit when/when-not conditions: creation happens only on exactly one catalog match, nothing is created when several or zero match, and a follow-up call with a candidate's title plus book_id commits the choice. The only gap is that it never names the sibling alternative (e.g. add_resource) by name, leaving the agent to infer the routing from the negative URL statement.

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