Skip to main content
Glama

Search books

search_books
Read-onlyIdempotent

Find books in the BookPal catalog by title, author or ISBN-13. Use it first when the buyer names a title or author; pass an ISBN-13 when known (a partial ISBN is refused). Returns up to 10 matches with format, minimum order, the per-copy price at the minimum order, and the book page url. No pagination: when truncated is true, add the author or more title words.

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": {
      "query": "<query>"
    },
    "name": "search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesTitle, author, or ISBN-13. Returns up to 10 matches.

Output Schema

NameRequiredDescriptionDefault
urlYesCanonical bookpal.com page for this answer; cite and link it.
noteYes
resultsYes
truncatedYesTrue when more books matched than were returned; refine the query.
snapshot_atYesWhen this catalog data was last synced from bookpal.com (ISO 8601).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive behavior, yet the description still adds real value: a hard 10-match cap, no pagination, a documented refusal for partial ISBNs, and a truncated-flag recovery strategy. Only the result ordering/relevance rule and the empty-result case are left unstated.

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?

Four short sentences, front-loaded with purpose, then usage, then return shape, then the truncation remedy. No sentence is redundant with another.

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?

With annotations, a 1-parameter schema at full coverage, and an output schema, the description covers nearly everything an agent needs: result count cap, truncation handling, and input validation. Minor gaps are relevance ordering of matches and behavior on zero results.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further: it restricts the ISBN to ISBN-13, warns that a partial ISBN is refused, and explains that title queries can be narrowed with author or more title words. That is meaningful query-construction guidance the schema does not carry.

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 ('Find books in the BookPal catalog') and enumerates the three supported lookup keys (title, author, ISBN-13). An agent can immediately tell this is the lookup tool, distinct from pricing/delivery/quote siblings.

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?

'Use it first when the buyer names a title or author' gives an explicit priority/ordering cue, and 'pass an ISBN-13 when known' gives a conditional path. It stops short of stating when-not to use it or naming the sibling to use instead for pricing or availability.

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