Skip to main content
Glama

palace_diary_search

Search diary entries semantically to recall recorded investigations and filter by project or tag; enable cross-agent search to maintain continuity across agents.

Instructions

Semantic search within diary entries. Set all_agents=true to recall investigations recorded by any agent (cross-agent continuity).

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

Input Schema

NameRequiredDescriptionDefault
tagNoOptional tag filter
limitNoMax results (default: 5)
queryYesSearch query
agent_nameYesYour agent name (required)
all_agentsNoSearch every agent's diary instead of only your own (default: false)
project_pathNoRestrict results to entries recorded for this project path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It conveys two meaningful traits beyond the schema — matching is semantic rather than keyword, and scope widens to all agents with all_agents=true — but says nothing about permissions, cost, result shape, or ordering.

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?

Two sentences, no filler, and the core purpose is front-loaded before the all_agents hint. Slightly under-elaborated rather than bloated, but every word earns its place.

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?

For a 6-parameter search tool with no annotations and no output schema, the definition is thin: it never describes what a result contains, how hits are ranked, or whether the semantic search requires embeddings to be built. The essential purpose and one scope flag are covered, leaving real gaps.

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 coverage is 100%, so every parameter (tag, limit, query, agent_name, all_agents, project_path) is already documented in the schema. The description adds only motivational context for all_agents (cross-agent continuity for investigations), not new syntax or format detail, so the baseline 3 applies.

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+resource: "Semantic search within diary entries." That distinguishes it from the sibling palace_diary_read (retrieval) and palace_diary_write, though it never names an alternative explicitly.

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?

Gives one concrete usage trigger: set all_agents=true for cross-agent continuity when recalling investigations. It offers no when-not guidance, no prerequisites, and does not route the agent to a sibling such as palace_diary_read or palace_search.

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