Skip to main content
Glama

palace_session_context

Retrieve warm-start context from recent diary entries, falling back to other agents' project work when your own history is empty.

Instructions

Get warm-start context from recent diary entries. Falls back to other agents' recent work for the project when you have none of your own.

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_session_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_nameYesYour agent name (required)
project_pathNoRestrict and scope fallback recall to this project path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

A3.7/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 burden, and it does disclose one key behavioral trait: conditional fallback to other agents' work when the caller has no entries. It does not explain what the returned context looks like, how much is returned, or any access scoping beyond project_path.

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?

Two short sentences, front-loaded with the core action and followed immediately by the conditional fallback. No filler or restated title text.

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 two-parameter retrieval tool with no output schema and no annotations, the definition covers the essentials of when to call it and its fallback behavior. It leaves open the shape and volume of what comes back, which an agent might want to know before calling.

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 the schema already documents both parameters and this is a baseline case. The description adds only an indirect gloss, tying project_path to the project whose other agents' work is recalled and implying agent_name identifies 'your own' entries.

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?

Names a specific verb and resource (get warm-start context from recent diary entries) plus a distinct fallback behavior, which separates it from plain diary tools like palace_diary_read. It stops short of naming a sibling to route against, so it is clear but not maximally differentiated.

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

Usage Guidelines4/5

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

The description states the situation for use (warm-starting) and the condition that triggers the fallback (when you have none of your own entries). It gives no explicit when-not guidance or named alternative, but the context is clear enough to act on.

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