Skip to main content
Glama

search_knowledge

Read-only

Find characters, locations, timeline events, and notes by substring in a book's knowledge base; matching is case-insensitive and supports English and CJK queries.

Instructions

Search a book's knowledge base (characters, locations, timeline events, notes) by substring. Case-insensitive and character-agnostic, so CJK works the same as English. Queries shorter than 2 characters are rejected by the server.

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

Input Schema

NameRequiredDescriptionDefault
typeNo
limitNoMax results (default 50, server caps at 100)
queryYesSearch query — at least 2 characters (server returns nothing below that)
bookIdYesBook ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true, openWorldHint=true), so the description's job is to add operational detail — and it does: case-insensitive matching, CJK/character-agnostic behavior, and the fact that queries under 2 characters are rejected server-side. It omits result ordering and what fields come back, so it stops short of full transparency, but the behavioral additions are substantive rather than restatements.

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?

Three short sentences, zero filler, with the core behavior (what is searched, how matching works, the rejection rule) front-loaded in that order. Every sentence carries distinct information an agent would otherwise have to guess.

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?

For a 4-parameter read-only search with no output schema, the definition covers what is searched, how matching works, and the input constraint. Minor gaps remain — result ordering, whether note body text is searched or only titles, and whether a result array or grouped structure is returned — but nothing essential to invoking it correctly is missing.

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 75%, so the schema already documents bookId, query, and limit. The description adds real meaning the schema does not: matching is substring-based (not semantic or fuzzy) and case-insensitive, and the enumerated entity list ('characters, locations, timeline events, notes') gives semantic grounding to the type enum. The limit parameter's behavior is left entirely to the schema, which is acceptable given its inline description.

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 and resource with scope: 'Search a book's knowledge base' plus the entity categories indexed (characters, locations, timeline events, notes). This clearly separates it from list_knowledge at a conceptual level, but the description never names or contrasts any sibling explicitly, leaving the search-vs-list distinction to inference.

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?

Usage is only implied: the reader can infer this is the tool for substring lookups across knowledge entities, and the mention of entity categories hints that a type filter exists. There is no explicit statement of when to prefer this over list_knowledge or search_book, and no guidance on when a broad listing would be better than a substring search.

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