Skip to main content
Glama

palace_search

Search project and conversation memory semantically to retrieve source-grounded drawer content with similarity scores and neighboring context; filter by room or wing to narrow results.

Instructions

Semantic search. Returns verbatim drawer content with similarity scores, plus the chunks right before and after each hit (source_context).

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

Input Schema

NameRequiredDescriptionDefault
roomNoFilter by room (optional)
wingNoFilter by wing (optional)
limitNoMax results (default 5)
queryYesWhat to search for
rerankNoRerank top hybrid candidates with the local interaction reranker
contextNoInclude each hit's neighbouring chunks (default: true). Pass false for a smaller response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the return shape, including verbatim content, similarity scores, and surrounding chunks, but it does not explicitly state that the operation is read-only, whether results are paginated, or any other operational constraints such as latency or cost.

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 two sentences, front-loaded with the core operation, and every sentence adds useful detail about the return format. There is no redundant or filler language.

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?

The tool has six parameters, a full schema, and no output schema. The description explains what the search returns and the role of context chunks, but it omits usage routing against sibling tools and does not fully compensate for the absence of annotations by stating read-only behavior or other operational traits.

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 all six parameters, including defaults for limit and context. The description adds a little meaning by naming source_context and explaining that neighboring chunks are returned, but it does not add syntax or filtering semantics beyond what the schema provides.

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?

The description states a specific operation (semantic search) and clarifies that it returns verbatim drawer content with similarity scores plus neighboring chunks. It is clear what the tool does, but it does not distinguish itself from sibling search or retrieval tools such as palace_diary_search, palace_preference_search, or palace_get_drawer.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives, nor does it state when not to use it or what prerequisites apply. The only implied usage is that it performs semantic search, but no routing or selection criteria are given.

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