Skip to main content
Glama
hardcover-mcp

hardcover-mcp

Search Books

hardcover_search_books
Read-onlyIdempotent

Search books with natural language queries like 'fantasy dragons' using Hardcover's Typesense engine. Returns paginated results with author and publication details for book discovery.

Instructions

Full-text search for books using Hardcover's Typesense search engine. Better than find_books for natural language queries like 'fantasy dragons' or 'mystery thriller'. [API cost: up to 2 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. Empty search: 1 field; search plus batched details: 2.

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": "hardcover_search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default 1)
queryYesSearch query text
per_pageNoResults per page (1-50, default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), but the description adds genuinely non-derivable behavior: a per-call GraphQL field budget, retry costs, honor RateLimit/RateLimit-Policy/Retry-After and cooldowns, and the empty-search vs. batched-detail field counts. The cost model is somewhat terse and jargon-heavy, which slightly limits how actionable it is, but it is real context the schema cannot supply.

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?

Front-loaded with purpose and the sibling comparison, and the bracketed cost note is compact rather than wasteful. The rate-limit clause is dense with abbreviated terms, but nearly every sentence carries operational weight.

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?

No output schema exists, yet the description gives enough to call correctly: query intent, pagination discipline, and rate-limit handling. It omits what the returned results look like or how to interpret an empty result set, which is the main remaining gap for a search tool.

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%, so the schema already documents query, page, and per_page with defaults and bounds. The description adds only indirect guidance ("Use bounded pages") and no query syntax, tokenization, or paging semantics beyond what is structured. Baseline 3 is appropriate.

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 ("Full-text search for books") plus the underlying engine (Typesense), and explicitly positions itself against the sibling find_books. An agent can distinguish this from the other search tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative (find_books) and the condition that selects this tool: natural language queries like 'fantasy dragons'. It also gives operational preconditions (check hardcover_get_rate_limit before multi-page work, use bounded pages, don't fan out detail lookups), leaving little to inference.

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