Skip to main content
Glama

assign_shelves

Add or remove books from shelves by shelf ID without deleting books or shelves, so you can update shelf assignments while preserving library records.

Instructions

Put books on and/or take them off shelves (by shelf id). Never deletes books or shelves.

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_ids": "<book_ids>"
    },
    "name": "assign_shelves"
  }
}

Input Schema

NameRequiredDescriptionDefault
add_toNo
book_idsYes
remove_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, and the sentence 'Never deletes books or shelves' reinforces what is not destroyed, which is the right kind of added context. It still says nothing about idempotency on re-add, behavior for unknown book/shelf IDs, or whether removal affects other shelves, and the presence of an output schema excuses it from describing return values.

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?

A single front-loaded sentence with no filler; both clauses earn their place. The compressed 'and/or' construction is efficient but slightly dense given it encodes two distinct operations.

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

Completeness3/5

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

With three parameters at 0% schema coverage, this description is thinner than the schema demands even accounting for the output schema. An agent can infer the general operation, but the required/optional split and the semantics of supplying only one of the two shelf arrays remain unstated.

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 0%, so the description must carry the burden here. It does add real meaning by clarifying that the target arguments are shelf IDs, disambiguating the opaque 'add_to' and 'remove_from' names, but it never maps them to the book_ids parameter or notes that book_ids is required while the two shelf arrays are optional.

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

Purpose4/5

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

States a specific verb-resource pair: putting books on shelves and taking them off, scoped 'by shelf id'. This distinguishes it from shelf-level siblings such as create_shelf or list_shelves, which operate on shelves themselves rather than book placements.

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?

The 'and/or' phrasing implies you may add only, remove only, or do both in one call, which is useful context for choosing this tool. However, there is no explicit statement of when to prefer it over alternatives, no prerequisites, and no note on what happens when neither add_to nor remove_from is supplied.

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