Skip to main content
Glama

search_literature

Retrieve relevant, cited passages from a large corpus of public-domain books by full-text search. Returns ranked, exact excerpts with title and author, never summarized.

Instructions

PREMIUM full-text search across the entire indexed public-domain corpus (17k+ books and growing). Returns the most relevant passages from ANY book, ranked by relevance, with title/author citations. Retrieval only — real cited passages, never LLM-generated or summarized. Costs $0.02 via x402 (requires WALLET_PRIVATE_KEY, USDC on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax passages to return (default 10, max 30)
queryYesFull-text search query, e.g. 'the nature of justice'
Behavior5/5

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

With no annotations provided, the description fully discloses key behaviors: it is retrieval-only (never generates or summarizes), costs $0.02 via x402, requires WALLET_PRIVATE_KEY and USDC on Base, and returns real cited passages ranked by relevance. This is transparent about cost, authenticity, and prerequisites.

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?

The description is concise (three sentences) and front-loaded with the core purpose immediately. Each sentence adds distinct value: scope, output, and cost/authentication. No filler or redundancy.

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?

The description provides sufficient context for a search tool: what it searches, what it returns, cost, and required credentials. It lacks details about search behavior (e.g., stemming, matching) but compensates with strong purpose and transparency. Given the simple schema and no output schema, this is nearly complete.

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% for both parameters (query and limit). The description does not add extra semantic detail beyond what the schema already provides, such as query syntax or behavior for varying limits, so the baseline of 3 applies.

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?

The description clearly states a specific verb and resource: 'full-text search across the entire indexed public-domain corpus.' It distinguishes itself from sibling tools by emphasizing the full-text nature and the 'PREMIUM' aspect, likely different from search_books which may search metadata. The scope and output (passages with citations) are explicit.

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 description implies usage for full-text retrieval but does not explicitly state when to prefer this over alternatives like search_books. It provides context (premium, full-text, cost) but no exclusions or alternative references, so guidelines are implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/forgemeshlabs/library-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server