Skip to main content
Glama

palace_diary_read

Read an agent's most recent diary entries newest first to review what they did lately, including dates, topics, session IDs, tags, and text.

Instructions

Read an agent's most recent diary entries, newest first, with date, topic, session id, tags and text. Read-only. Use it to review what an agent did lately in order; use palace_diary_search to find entries about a subject, and palace_session_context for warm-start context at session start.

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>"
    },
    "name": "palace_diary_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
last_nNoNumber of most recent entries to return (default: 10)
agent_nameYesAgent whose diary to read, usually your own name (see palace_list_agents)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.20.7
    • changedInput schema / properties / agent_name / description
      Previous value: -"Your agent name (required)"New value: +"Agent whose diary to read, usually your own name (see palace_list_agents)"
    • changedInput schema / properties / last_n / description
      Previous value: -"Number of recent entries (default: 10)"New value: +"Number of most recent entries to return (default: 10)"
  2. First observedv0.20.5

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does state "Read-only" plus the newest-first ordering, which is real behavioral information. It does not say whether reading another agent's diary is permitted or what happens when an agent has no entries, which are the remaining gaps for a tool with an agent_name parameter.

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, front-loaded with what is returned, then the safety trait, then the routing guidance. No redundant or filler wording.

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 two-parameter read tool with no output schema, enumerating the returned fields compensates well, and the sibling routing is complete. Minor gaps remain around empty-result behavior and cross-agent access, which a caller might wonder about.

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 both parameters are already documented, including the default of 10 for last_n. The description adds only the ordering context that makes last_n meaningful ("newest first"); it does not explain agent_name semantics beyond what the schema says.

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 ("Read an agent's most recent diary entries"), the ordering ("newest first"), and the exact fields returned (date, topic, session id, tags, text). This is enough for an agent to distinguish it from palace_diary_search without opening either 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?

Gives an explicit when-to-use ("review what an agent did lately in order") plus two named alternatives with the conditions that select them: palace_diary_search for subject lookup and palace_session_context for warm-start context. Nothing is left to inference.

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